Skip to content

Commit fe0ad3b

Browse files
committed
chore: blocking set-provider in test
Signed-off-by: Todd Baert <[email protected]>
1 parent 3f1cfed commit fe0ad3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/dev/openfeature/sdk/OpenFeatureClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void reset_logs() {
4242
@DisplayName("should not throw exception if hook has different type argument than hookContext")
4343
void shouldNotThrowExceptionIfHookHasDifferentTypeArgumentThanHookContext() {
4444
OpenFeatureAPI api = OpenFeatureAPI.getInstance();
45-
api.setProvider("shouldNotThrowExceptionIfHookHasDifferentTypeArgumentThanHookContext", new DoSomethingProvider());
45+
api.setProviderAndWait("shouldNotThrowExceptionIfHookHasDifferentTypeArgumentThanHookContext", new DoSomethingProvider());
4646
Client client = api.getClient("shouldNotThrowExceptionIfHookHasDifferentTypeArgumentThanHookContext");
4747
client.addHooks(mockBooleanHook(), mockStringHook());
4848
FlagEvaluationDetails<Boolean> actual = client.getBooleanDetails("feature key", Boolean.FALSE);

0 commit comments

Comments
 (0)