Skip to content

Commit 13e3141

Browse files
committed
add delay to conn over http
1 parent 0448685 commit 13e3141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conn_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func TestHTTPRWConn(t *testing.T) {
8888
flusher.Flush()
8989
fw := &flushWrite{w: w, f: flusher}
9090
doneCh := make(chan struct{})
91-
c2 = NewConn(r.Body, fw, SetCloseHook(func() {
91+
c2 = NewConn(r.Body, fw, SetWriteDelay(500*time.Millisecond), SetCloseHook(func() {
9292
// exit the handler
9393
close(doneCh)
9494
}))

0 commit comments

Comments
 (0)