Skip to content

Commit 9f5b79b

Browse files
committed
http2: drop unused retry function
Change-Id: Ibe7e022a4863c8b0e502d7952b870046443acf7e Reviewed-on: https://go-review.googlesource.com/c/net/+/586248 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 03c24c2 commit 9f5b79b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

http2/transport_test.go

-12
Original file line numberDiff line numberDiff line change
@@ -481,18 +481,6 @@ func TestTransportGroupsPendingDials(t *testing.T) {
481481
}
482482
}
483483

484-
func retry(tries int, delay time.Duration, fn func() error) error {
485-
var err error
486-
for i := 0; i < tries; i++ {
487-
err = fn()
488-
if err == nil {
489-
return nil
490-
}
491-
time.Sleep(delay)
492-
}
493-
return err
494-
}
495-
496484
func TestTransportAbortClosesPipes(t *testing.T) {
497485
shutdown := make(chan struct{})
498486
ts := newTestServer(t,

0 commit comments

Comments
 (0)