File tree 1 file changed +3
-2
lines changed
src/test/java/dev/openfeature/sdk/providers/memory
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 27
27
import static org .junit .jupiter .api .Assertions .assertEquals ;
28
28
import static org .junit .jupiter .api .Assertions .assertThrows ;
29
29
import static org .junit .jupiter .api .Assertions .assertTrue ;
30
+ import static org .awaitility .Awaitility .await ;
30
31
import static org .mockito .ArgumentMatchers .any ;
31
32
import static org .mockito .ArgumentMatchers .argThat ;
32
33
import static org .mockito .Mockito .mock ;
@@ -126,8 +127,8 @@ void emitChangedFlagsOnlyIfThereAreChangedFlags() {
126
127
127
128
provider .updateFlags (flags );
128
129
129
- verify (handler , times (1 ))
130
- .accept (argThat (details -> details .getFlagsChanged ().isEmpty ()));
130
+ await (). untilAsserted (() -> verify (handler , times (1 ))
131
+ .accept (argThat (details -> details .getFlagsChanged ().isEmpty ()))) ;
131
132
}
132
133
133
134
@ Test
You can’t perform that action at this time.
0 commit comments