Skip to content

Commit de349a5

Browse files
test(features): preserve query flag coverage after rebase
Resolve the feature-query test against the final string-compatible flag API. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1e4a1ca6-53f7-4158-af22-35d2448d0b13
1 parent 96a1891 commit de349a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/http/handler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,10 @@ func TestHTTPHandlerRoutes(t *testing.T) {
379379
// Match the production allowlist and insiders expansion behavior.
380380
featureChecker := func(ctx context.Context, flag inventory.FeatureFlag) (bool, error) {
381381
effective := github.ResolveFeatureFlags(
382-
github.FeatureFlagsFromStrings(ghcontext.GetHeaderFeatures(ctx)),
382+
ghcontext.GetHeaderFeatures(ctx),
383383
ghcontext.IsInsidersMode(ctx),
384384
)
385-
return effective[flag], nil
385+
return effective[string(flag)], nil
386386
}
387387

388388
apiHost, err := utils.NewAPIHost("https://api.github.com")

0 commit comments

Comments
 (0)