Skip to content

Commit

Permalink
SNOW-1778027: Fix stopwatch flaky test (#1949)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dprzybysz authored Oct 31, 2024
1 parent 58325fd commit f1b5790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/net/snowflake/client/util/StopwatchTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void testGetMillisWhenStopped() throws InterruptedException {
@Test
public void testGetMillisWithoutStopping() throws InterruptedException {
stopwatch.start();
TimeUnit.MILLISECONDS.sleep(20);
TimeUnit.MILLISECONDS.sleep(100);
assertThat(
stopwatch.elapsedMillis(), allOf(greaterThanOrEqualTo(10L), lessThanOrEqualTo(500L)));
}
Expand Down

0 comments on commit f1b5790

Please sign in to comment.