Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions openfeature/testing/testprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"runtime"
"sync"
"testing"

"github.com/open-feature/go-sdk/openfeature"
"github.com/open-feature/go-sdk/openfeature/memprovider"
Expand All @@ -29,7 +28,9 @@ type TestProvider struct {
}

// UsingFlags sets flags for the scope of a test
func (tp TestProvider) UsingFlags(test testing.TB, flags map[string]memprovider.InMemoryFlag) {
type TestFramework = interface{ Name() string }

func (tp TestProvider) UsingFlags(test TestFramework, flags map[string]memprovider.InMemoryFlag) {
storeGoroutineLocal(test.Name())
tp.providers.Store(test.Name(), memprovider.NewInMemoryProvider(flags))
}
Expand Down
Loading