Skip to content

Commit

Permalink
test(http1): fix retry test (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
a631807682 authored Jul 25, 2023
1 parent eca144b commit 3161f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/protocol/http1/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ func TestRetry(t *testing.T) {
Delay: time.Millisecond * 10,
},
RetryIfFunc: func(req *protocol.Request, resp *protocol.Response, err error) bool {
return true
return resp.Header.ContentLength() != 10
},
},
Addr: "foobar",
Expand Down

0 comments on commit 3161f04

Please sign in to comment.