test: wait longer than timeout
The 1s timeout raced with the 1s deadline it was trying to detect.
This commit is contained in:
parent
fd81208db7
commit
19a1932bbb
|
@ -976,7 +976,7 @@ func TestHTTPServer_Limits_OK(t *testing.T) {
|
|||
// Now assert each error is a clientside read deadline error
|
||||
for i := 0; i < maxConns; i++ {
|
||||
select {
|
||||
case <-time.After(1 * time.Second):
|
||||
case <-time.After(2 * time.Second):
|
||||
t.Fatalf("timed out waiting for conn error %d", i)
|
||||
case err := <-errCh:
|
||||
testutil.RequireDeadlineErr(t, err)
|
||||
|
|
Loading…
Reference in a new issue