test: wait longer than timeout

The 1s timeout raced with the 1s deadline it was trying to detect.
This commit is contained in:
Michael Schurter 2020-02-06 13:57:17 -08:00
parent fd81208db7
commit 19a1932bbb

View file

@ -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)