Skip to content

Commit f86ed3f

Browse files
committed
Don't defer t.Cleanup
1 parent 249140b commit f86ed3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openfeature/openfeature_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ func TestRequirement_1_6_1(t *testing.T) {
588588
// The API's `shutdown` function MUST reset all state of the API, removing all
589589
// hooks, event handlers, and providers.
590590
func TestRequirement_1_6_2(t *testing.T) {
591-
defer t.Cleanup(initSingleton)
591+
t.Cleanup(initSingleton)
592592

593593
// TODO: test that hooks and event handlers are removed as well. This only
594594
// tests that providers are removed.

0 commit comments

Comments
 (0)