Skip to content

Commit

Permalink
chore: fix another flaky test
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <[email protected]>
  • Loading branch information
toddbaert committed Oct 15, 2024
1 parent 457da96 commit 473a057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/dev/openfeature/sdk/HookSpecTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ void error_hook_must_run_if_resolution_details_returns_an_error_code() {
.build());

OpenFeatureAPI api = OpenFeatureAPI.getInstance();
FeatureProviderTestUtils.setFeatureProvider(provider);
Client client = api.getClient();
FeatureProviderTestUtils.setFeatureProvider("errorHookMustRun", provider);
Client client = api.getClient("errorHookMustRun");
client.getBooleanValue("key", false, invocationCtx,
FlagEvaluationOptions.builder()
.hook(hook)
Expand Down

0 comments on commit 473a057

Please sign in to comment.