Skip to content

Commit

Permalink
add delay to conn over http
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Jun 22, 2022
1 parent 0448685 commit 13e3141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func TestHTTPRWConn(t *testing.T) {
flusher.Flush()
fw := &flushWrite{w: w, f: flusher}
doneCh := make(chan struct{})
c2 = NewConn(r.Body, fw, SetCloseHook(func() {
c2 = NewConn(r.Body, fw, SetWriteDelay(500*time.Millisecond), SetCloseHook(func() {
// exit the handler
close(doneCh)
}))
Expand Down

0 comments on commit 13e3141

Please sign in to comment.