Add Go 1.17 support (#1074)

* Add Go 1.17 support

* Increase test timeouts
This commit is contained in:
Erik Dubbelboer
2021-08-18 21:38:21 +02:00
committed by GitHub
parent 97e1319927
commit 5a6e6e102b
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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)
}
+3 -3
View File
@@ -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")
}
@@ -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")
}
@@ -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")
}