mirror of https://github.com/apache/lucene.git
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:
parent
24d9c6b9c7
commit
94d7eee008
|
@ -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())) {
|
||||
|
|
Loading…
Reference in New Issue