Skip to content

Commit

Permalink
Use testing.TB for UsingFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
ekarlso committed Feb 4, 2025
1 parent 4f805af commit 454d168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfeature/testing/testprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type TestProvider struct {
}

// UsingFlags sets flags for the scope of a test
func (tp TestProvider) UsingFlags(test *testing.T, flags map[string]memprovider.InMemoryFlag) {
func (tp TestProvider) UsingFlags(test testing.TB, flags map[string]memprovider.InMemoryFlag) {
storeGoroutineLocal(test.Name())
tp.providers.Store(test.Name(), memprovider.NewInMemoryProvider(flags))
}
Expand Down

0 comments on commit 454d168

Please sign in to comment.