Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
The test must reset the counter baseline every time it ignores an iteration due to sleeping too much.
  • Loading branch information
chrisvest committed Jun 16, 2024
1 parent 984000d commit 06fdf85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/java/blackbox/slow/PoolIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ void mustGraduallyReduceAggressivenessInRepairingFailingAllocator() throws Excep
if (elapsedMillis >= 150) {
// Ignore outliers with very high sleep time.
i--;
prev = counter.get();
continue;
}
curr = counter.get();
Expand Down

0 comments on commit 06fdf85

Please sign in to comment.