LUCENE-2819: set this before interuppting also, to prevent false fails

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050718 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-12-18 21:20:46 +00:00
parent 50fe69c091
commit fb7f94b419
1 changed files with 1 additions and 0 deletions

View File

@ -543,6 +543,7 @@ public abstract class LuceneTestCase extends Assert {
} catch (InterruptedException e) { e.printStackTrace(); }
// try to stop the thread:
t.setUncaughtExceptionHandler(null);
Thread.setDefaultUncaughtExceptionHandler(null);
t.interrupt();
try {
t.join(THREAD_STOP_GRACE_MSEC);