From e78141a82c6512e85b4fd89f38e2499d3817fb98 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 28 Dec 2012 16:18:36 +0000 Subject: [PATCH] try harder in this test git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1426565 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/lucene/index/TestIndexWriter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java index b2a83e15628..54f41fd6ef8 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java @@ -1110,9 +1110,10 @@ public class TestIndexWriter extends LuceneTestCase { // init this class (in servicing a first interrupt): assertTrue(new ThreadInterruptedException(new InterruptedException()).getCause() instanceof InterruptedException); - // issue 100 interrupts to child thread + // issue 300 interrupts to child thread + final int numInterrupts = atLeast(300); int i = 0; - while(i < 100) { + while(i < numInterrupts) { Thread.sleep(10); if (t.allowInterrupt) { i++;