Skip to content

Commit c997a91

Browse files
committed
Adjust TestWithRecoverFunc and TestClientRetryFailure timings
1 parent ac6ed3f commit c997a91

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

client/http/http_client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func TestClientRetryFailure(t *testing.T) {
7979
l.Close()
8080

8181
go func() {
82-
time.Sleep(2 * time.Second)
82+
time.Sleep(3 * time.Second)
8383

8484
l, err := net.Listen("tcp", fmt.Sprintf("localhost:%d", port))
8585
if err != nil {

servers/servers_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"strings"
1818
"sync"
1919
"testing"
20+
"time"
2021
)
2122

2223
var (
@@ -200,6 +201,7 @@ func TestWithRecoverFunc(t *testing.T) {
200201
}
201202

202203
<-m.serving
204+
time.Sleep(time.Second)
203205

204206
mu.Lock()
205207
defer mu.Unlock()

0 commit comments

Comments
 (0)