Increase the wait time for assertDurationIsInRange(0)
Addressing flakiness in test_parkFor_3 / test_parkUntil_3.
The wait time permitted was Math.max(expectedMillis * 10, 30)
where expectedMillis = 0. That meant that the test code had
just 30ms between calling Thread.start() and the Parker code being
executed reaching the notifyAll().
Other tests use an expectedMillis of 500 and 300, giving
more time for the Thread to start and complete their wait().
e.g. 4500ms and 2700ms above the expected park time,
(cherry picked from commit fe71cd583ca8f5709b25190acc48b28180e192b7)
1 file changed