Skip to content

Commit

Permalink
wip: add sleep because it looks like the failing test is a concurrenc…
Browse files Browse the repository at this point in the history
…y thing
  • Loading branch information
sighphyre committed Jan 16, 2025
1 parent 5de3208 commit 1889e0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/java/io/getunleash/DefaultUnleashTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ public void asynchronous_fetch_on_initialisation_fails_silently_and_retries()
.build();

Unleash unleash = new DefaultUnleash(config);
Thread.sleep(500);
verify(fetcher, times(1)).fetchFeatures();
Thread.sleep(1200);
verify(fetcher, times(2)).fetchFeatures();
Expand Down

0 comments on commit 1889e0b

Please sign in to comment.