try harder in this test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1426565 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-12-28 16:18:36 +00:00
parent e32fe689fa
commit e78141a82c
1 changed files with 3 additions and 2 deletions

View File

@ -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++;