Skip to content

Commit

Permalink
Increases leeway around deadline check
Browse files Browse the repository at this point in the history
We sometimes see flakes when this test is run by GitHub actions. This
is likely caused by time-sharing of the underlying hardware. A simple
fix is to be a little more lenient about we regard as adhering to the
deadline.
  • Loading branch information
louismrose committed Jan 7, 2025
1 parent 991d4d5 commit 2abd60b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void doesNotExceedDeadline() throws IOException {
final long elapsed = end - start;

assertEquals(429, response.code());
assertEquals(timeout.toMillis(), elapsed, 100);
assertEquals(timeout.toMillis(), elapsed, 1500);
}


Expand Down

0 comments on commit 2abd60b

Please sign in to comment.