Skip to content

Commit fab7f0d

Browse files
committed
fix: cache test
1 parent b715fdb commit fab7f0d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

pkg/http/cache_test.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ func TestGetCacheKey(t *testing.T) {
335335
shouldHashQuery bool
336336
ignoreParams []string
337337
hashHeaders []string
338-
ignoreHeaders []string
339338
want string
340339
}{
341340
{
@@ -428,19 +427,6 @@ func TestGetCacheKey(t *testing.T) {
428427
hashHeaders: []string{"Authorization", "X-User-ID", "Accept"},
429428
want: "GET:/api/users|Accept=application/json|Authorization=Bearer token123|X-User-ID=user456",
430429
},
431-
{
432-
name: "ignored headers",
433-
path: "/api/users",
434-
method: "GET",
435-
headers: map[string]string{
436-
"Authorization": "Bearer token123",
437-
"X-User-ID": "user456",
438-
},
439-
shouldHashQuery: true,
440-
hashHeaders: []string{"Authorization", "X-User-ID"},
441-
ignoreHeaders: []string{"X-User-ID"},
442-
want: "GET:/api/users|Authorization=Bearer token123",
443-
},
444430
{
445431
name: "multiple values for same header",
446432
path: "/api/users",

0 commit comments

Comments
 (0)