LUCENE-1950: fix intermittent exception in testcase

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@823369 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-10-09 00:30:40 +00:00
parent 24d9c6b9c7
commit 94d7eee008
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class TestConcurrentMergeScheduler extends LuceneTestCase {
}
public void eval(MockRAMDirectory dir) throws IOException {
if (doFail) {
if (doFail && Thread.currentThread().getName().equals("main")) {
StackTraceElement[] trace = new Exception().getStackTrace();
for (int i = 0; i < trace.length; i++) {
if ("doFlush".equals(trace[i].getMethodName())) {