Commit fe71cd58 authored by Neil Fuller's avatar Neil Fuller
Browse files

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,
respectively.

Bug: 29177727
Change-Id: I92d34a535f98929b767eebb75d4c49487b9b0348
parent e03b33ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment