Skip to content

Commit

Permalink
Increase TestServerTLSReadTimeout timeout
Browse files Browse the repository at this point in the history
And TestFSCompressConcurrent timeout
  • Loading branch information
erikdubbelboer committed Jun 18, 2021
1 parent 410bde6 commit 924a63f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ func TestFSCompressConcurrent(t *testing.T) {
for i := 0; i < concurrency; i++ {
select {
case <-ch:
case <-time.After(time.Second * 2):
case <-time.After(time.Second * 3):
t.Fatalf("timeout")
}
}
Expand Down
4 changes: 2 additions & 2 deletions server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ func TestServerTLSReadTimeout(t *testing.T) {
ln := fasthttputil.NewInmemoryListener()

s := &Server{
ReadTimeout: time.Millisecond * 100,
ReadTimeout: time.Millisecond * 500,
Logger: &testLogger{}, // Ignore log output.
Handler: func(ctx *RequestCtx) {
},
Expand Down Expand Up @@ -986,7 +986,7 @@ func TestServerTLSReadTimeout(t *testing.T) {

select {
case err = <-r:
case <-time.After(time.Millisecond * 500):
case <-time.After(time.Second):
}

if err == nil {
Expand Down

0 comments on commit 924a63f

Please sign in to comment.