Skip to content

Commit

Permalink
review: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpollet committed Nov 6, 2024
1 parent eb3504a commit 65ac4b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/service/loadbalancer/wrr/wrr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func TestSticky(t *testing.T) {
HTTPOnly: true,
SameSite: "none",
MaxAge: 42,
Path: func(v string) *string { return &v }("/"),
Path: func(v string) *string { return &v }("/foo"),
},
}, false)

Expand Down Expand Up @@ -264,7 +264,7 @@ func TestSticky(t *testing.T) {
assert.True(t, recorder.cookies["test"].Secure)
assert.Equal(t, http.SameSiteNoneMode, recorder.cookies["test"].SameSite)
assert.Equal(t, 42, recorder.cookies["test"].MaxAge)
assert.Equal(t, "/", recorder.cookies["test"].Path)
assert.Equal(t, "/foo", recorder.cookies["test"].Path)
}

func TestSticky_FallBack(t *testing.T) {
Expand Down

0 comments on commit 65ac4b6

Please sign in to comment.