Skip to content

Commit

Permalink
fix: Adjust sleep test to have more buffer
Browse files Browse the repository at this point in the history
This test was failing on the Windows CI, with a diff greater than 999 ms (but lower than 1s).
This might be a race condition, or a clock resolution issue, both of which should
be fixed by giving the test an extra 300 ms of legroom.
  • Loading branch information
Geod24 committed Jan 24, 2025
1 parent 49e9355 commit 5d28036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/geod24/LocalRest.d
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,7 @@ unittest
assert(current2 - current1 < 200.msecs);

// Make one of the node sleep
n1.sleep(1.seconds);
n1.sleep(1300.msecs);
// Make sure our main thread is not suspended,
// nor is the second node
assert(2 == n2.call());
Expand Down

0 comments on commit 5d28036

Please sign in to comment.