We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ed9510 commit 14aedb5Copy full SHA for 14aedb5
test/jdk/com/sun/jdi/InterruptHangTest.java
@@ -101,8 +101,10 @@ public static void main(String[] args){
101
for (int ii = 0; ii < INTERRUPTS_EXPECTED; ii++) {
102
boolean wasInterrupted = false;
103
try {
104
- // Give other thread a chance to interrupt
105
- 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
106
+ // the interrupt due to machine and network hiccups.
107
+ Thread.sleep(10*1000);
108
} catch (InterruptedException ee) {
109
answer++;
110
wasInterrupted = true;
0 commit comments