Skip to content

Commit bde150b

Browse files
committed
fixup: flaky test
Signed-off-by: Todd Baert <[email protected]>
1 parent 6ceaa82 commit bde150b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

providers/flagd/src/test/java/dev/openfeature/contrib/providers/flagd/FlagdProviderSyncResourcesTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,13 @@ void callingInitialize_wakesUpWaitingThread() throws InterruptedException {
100100

101101
waitingThread.join();
102102

103+
var wait = MAX_TIME_TOLERANCE * 3;
104+
103105
Assertions.assertTrue(
104-
waitTime.get() < MAX_TIME_TOLERANCE * 2,
106+
waitTime.get() <wait,
105107
() -> "Wakeup should be almost instant, but took " + waitTime.get()
106108
+ " ms, which is more than the max of"
107-
+ (MAX_TIME_TOLERANCE * 2) + " ms");
109+
+ wait + " ms");
108110
}
109111

110112
@Timeout(2)

0 commit comments

Comments
 (0)