Skip to content

Commit

Permalink
Another mock fix, was returning a func instead of a FF struct.
Browse files Browse the repository at this point in the history
  • Loading branch information
brooklyn-welsh committed Oct 22, 2024
1 parent d34d5b1 commit 84d600b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/handlers/apitests.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,13 @@ func (suite *BaseHandlerTestSuite) HandlerConfig() *Config {
mock.AnythingOfType("string"),
mock.Anything,
).Return(func(ctx context.Context, appCtx appcontext.AppContext, key string, flagContext map[string]string) (services.FeatureFlag, error) {
return mockGetFlagFunc(ctx, appCtx.Logger(), "[email protected]", key, flagContext, "")
return services.FeatureFlag{
Entity: "[email protected]",
Key: key,
Match: true,
Variant: "",
Namespace: "test",
}, nil
})
return &Config{
db: suite.DB(),
Expand Down

0 comments on commit 84d600b

Please sign in to comment.