mirror of https://github.com/apache/lucene.git
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:
parent
e32fe689fa
commit
e78141a82c
|
@ -1110,9 +1110,10 @@ public class TestIndexWriter extends LuceneTestCase {
|
||||||
// init this class (in servicing a first interrupt):
|
// init this class (in servicing a first interrupt):
|
||||||
assertTrue(new ThreadInterruptedException(new InterruptedException()).getCause() instanceof InterruptedException);
|
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;
|
int i = 0;
|
||||||
while(i < 100) {
|
while(i < numInterrupts) {
|
||||||
Thread.sleep(10);
|
Thread.sleep(10);
|
||||||
if (t.allowInterrupt) {
|
if (t.allowInterrupt) {
|
||||||
i++;
|
i++;
|
||||||
|
|
Loading…
Reference in New Issue