8333391: Test com/sun/jdi/InterruptHangTest.java failed: Thread was never interrupted during sleep
Reviewed-by: lmesnik, amenkov
This commit is contained in:
parent
b144910ebb
commit
ed6499446d
@ -101,8 +101,10 @@ class InterruptHangTarg {
|
||||
for (int ii = 0; ii < INTERRUPTS_EXPECTED; ii++) {
|
||||
boolean wasInterrupted = false;
|
||||
try {
|
||||
// Give other thread a chance to interrupt
|
||||
Thread.sleep(100);
|
||||
// Give other thread a chance to interrupt. Normally only a very short
|
||||
// sleep is needed, but we need to account for unexpected delays in
|
||||
// the interrupt due to machine and network hiccups.
|
||||
Thread.sleep(10*1000);
|
||||
} catch (InterruptedException ee) {
|
||||
answer++;
|
||||
wasInterrupted = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user