File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/java/dev/openfeature/sdk Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ void reset_logs() {
42
42
@ DisplayName ("should not throw exception if hook has different type argument than hookContext" )
43
43
void shouldNotThrowExceptionIfHookHasDifferentTypeArgumentThanHookContext () {
44
44
OpenFeatureAPI api = OpenFeatureAPI .getInstance ();
45
- api .setProvider ("shouldNotThrowExceptionIfHookHasDifferentTypeArgumentThanHookContext" , new DoSomethingProvider ());
45
+ api .setProviderAndWait ("shouldNotThrowExceptionIfHookHasDifferentTypeArgumentThanHookContext" , new DoSomethingProvider ());
46
46
Client client = api .getClient ("shouldNotThrowExceptionIfHookHasDifferentTypeArgumentThanHookContext" );
47
47
client .addHooks (mockBooleanHook (), mockStringHook ());
48
48
FlagEvaluationDetails <Boolean > actual = client .getBooleanDetails ("feature key" , Boolean .FALSE );
@@ -96,7 +96,7 @@ void shouldNotCallEvaluationMethodsWhenProviderIsInFatalErrorState() {
96
96
void shouldNotCallEvaluationMethodsWhenProviderIsInNotReadyState () {
97
97
FeatureProvider provider = new TestEventsProvider (5000 );
98
98
OpenFeatureAPI api = OpenFeatureAPI .getInstance ();
99
- api .setProvider ("shouldNotCallEvaluationMethodsWhenProviderIsInNotReadyState" , provider );
99
+ api .setProviderAndWait ("shouldNotCallEvaluationMethodsWhenProviderIsInNotReadyState" , provider );
100
100
Client client = api .getClient ("shouldNotCallEvaluationMethodsWhenProviderIsInNotReadyState" );
101
101
FlagEvaluationDetails <Boolean > details = client .getBooleanDetails ("key" , true );
102
102
You can’t perform that action at this time.
0 commit comments