# | Line 1068 | Line 1068 | public class JSR166TestCase extends Test | |
---|---|---|
1068 | void assertThreadBlocks(Thread thread, Thread.State expected) { | |
1069 | // always sleep at least 1 ms, avoiding transitional states | |
1070 | // with high probability | |
1071 | < | for (long retries = LONG_DELAY_MS; retries-->0; ) { |
1071 | > | for (long retries = LONG_DELAY_MS * 3 / 4; retries-->0; ) { |
1072 | try { delay(1); } | |
1073 | catch (InterruptedException fail) { | |
1074 | fail("Unexpected InterruptedException"); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |