Skip to content

Commit

Permalink
Adjust TestWithRecoverFunc and TestClientRetryFailure timings
Browse files Browse the repository at this point in the history
  • Loading branch information
janos committed Dec 26, 2019
1 parent ac6ed3f commit c997a91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/http/http_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestClientRetryFailure(t *testing.T) {
l.Close()

go func() {
time.Sleep(2 * time.Second)
time.Sleep(3 * time.Second)

l, err := net.Listen("tcp", fmt.Sprintf("localhost:%d", port))
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions servers/servers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"strings"
"sync"
"testing"
"time"
)

var (
Expand Down Expand Up @@ -200,6 +201,7 @@ func TestWithRecoverFunc(t *testing.T) {
}

<-m.serving
time.Sleep(time.Second)

mu.Lock()
defer mu.Unlock()
Expand Down

0 comments on commit c997a91

Please sign in to comment.