Skip to content

Commit

Permalink
fix ratelimit e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: shawnh2 <[email protected]>
  • Loading branch information
shawnh2 committed Oct 8, 2024
1 parent 36902a4 commit 3760327
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/e2e/tests/ratelimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,9 @@ var RateLimitHeadersAndCIDRMatchTest = suite.ConformanceTest{
}
})

t.Run("only matched headers cannot got limited", func(t *testing.T) {
t.Run("only partly matched headers cannot got limited", func(t *testing.T) {
requestHeaders := map[string]string{
"x-user-id": "one",
"x-user-org": "acme",
"x-user-id": "one",
}

// it does not require any rate limit header, since this request never be rate limited.
Expand Down

0 comments on commit 3760327

Please sign in to comment.