Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Duslia committed May 9, 2024
1 parent 7a9b04a commit c41a858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/protocol/header_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -809,10 +809,10 @@ func TestResponseHeaderDateEmpty(t *testing.T) {

func TestSetTrailerWithROString(t *testing.T) {
h := &RequestHeader{}
h.Set(consts.HeaderTrailer, "foo,bar,hertz")
h.Add(consts.HeaderTrailer, "foo,bar,hertz")
assert.DeepEqual(t, "Foo, Bar, Hertz", h.Get(consts.HeaderTrailer))

h1 := &ResponseHeader{}
h1.Set(consts.HeaderTrailer, "foo,bar,hertz")
h1.Add(consts.HeaderTrailer, "foo,bar,hertz")
assert.DeepEqual(t, "Foo, Bar, Hertz", h1.Get(consts.HeaderTrailer))
}

0 comments on commit c41a858

Please sign in to comment.