Skip to content

Commit

Permalink
Use empty string description in test
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmundxia committed Sep 11, 2024
1 parent 58f8ccd commit baf3dbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions header_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1652,10 +1652,10 @@ func TestRequestHeaderSetCookie(t *testing.T) {

h.Set("cOOkie", "xx=yyy")
if len(h.Cookie("foo")) != 0 {
t.Fatalf("Unexpected cookie %q. Expecting %q", h.Cookie("foo"), "")
t.Fatalf("Unexpected cookie %q. Expecting empty string", h.Cookie("foo"))
}
if len(h.Cookie("baz")) != 0 {
t.Fatalf("Unexpected cookie %q. Expecting %q", h.Cookie("baz"), "")
t.Fatalf("Unexpected cookie %q. Expecting empty string", h.Cookie("baz"))
}
if string(h.Cookie("xx")) != "yyy" {
t.Fatalf("unexpected cookie %q. Expecting %q", h.Cookie("xx"), "yyy")
Expand Down

0 comments on commit baf3dbf

Please sign in to comment.