Skip to content

Commit

Permalink
Add Go 1.17 support (#1074)
Browse files Browse the repository at this point in the history
* Add Go 1.17 support

* Increase test timeouts
  • Loading branch information
erikdubbelboer committed Aug 18, 2021
1 parent 97e1319 commit 5a6e6e1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.16.x]
go-version: [1.17.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.15.x, 1.16.x]
go-version: [1.15.x, 1.16.x, 1.17.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion reuseport/reuseport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func testNewListener(t *testing.T, network, addr string, serversCount, requestsC
}()
select {
case <-ch:
case <-time.After(200 * time.Millisecond):
case <-time.After(250 * time.Millisecond):
t.Fatalf("%d. timeout when waiting for response", i)
}

Expand Down
6 changes: 3 additions & 3 deletions server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ func TestServerErrSmallBuffer(t *testing.T) {
var serverErr error
select {
case serverErr = <-ch:
case <-time.After(100 * time.Millisecond):
case <-time.After(200 * time.Millisecond):
t.Fatal("timeout")
}

Expand Down Expand Up @@ -1929,7 +1929,7 @@ func TestServerContinueHandler(t *testing.T) {
if err != nil {
t.Fatalf("Unexpected error from serveConn: %s", err)
}
case <-time.After(200 * time.Millisecond):
case <-time.After(250 * time.Millisecond):
t.Fatal("timeout")
}

Expand Down Expand Up @@ -3234,7 +3234,7 @@ func TestServerConnError(t *testing.T) {
if err != nil {
t.Fatalf("Unexpected error from serveConn: %s", err)
}
case <-time.After(100 * time.Millisecond):
case <-time.After(200 * time.Millisecond):
t.Fatal("timeout")
}

Expand Down

0 comments on commit 5a6e6e1

Please sign in to comment.