don't call Thread.interrupt after telling sub-thread to finish; it can cause false failure

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@982323 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-08-04 16:36:35 +00:00
parent 25e406fdf6
commit b8dc30b7e3
1 changed files with 1 additions and 2 deletions

View File

@ -4315,7 +4315,7 @@ public class TestIndexWriter extends LuceneTestCase {
volatile boolean failed;
volatile boolean finish;
boolean allowInterrupt = false;
volatile boolean allowInterrupt = false;
@Override
public void run() {
@ -4439,7 +4439,6 @@ public class TestIndexWriter extends LuceneTestCase {
}
t.allowInterrupt = false;
t.finish = true;
t.interrupt();
t.join();
assertFalse(t.failed);
}