Merge pull request #821 from enj/enj/t/increase_disruptive_test_timeout

test/integration: increase timeout on disruptive tests
This commit is contained in:
Mo Khan 2021-08-27 15:24:43 -04:00 committed by GitHub
commit 41c017c9da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,7 +405,7 @@ func requireEndpointNotFound(t *testing.T, url, host, caBundle string) {
requireEventually.NoError(err)
requireEventually.NoError(response.Body.Close())
requireEventually.Equal(http.StatusNotFound, response.StatusCode)
}, time.Minute, 200*time.Millisecond)
}, 2*time.Minute, 200*time.Millisecond)
}
func requireEndpointHasTLSErrorBecauseCertificatesAreNotReady(t *testing.T, url string) {
@ -424,7 +424,7 @@ func requireEndpointHasTLSErrorBecauseCertificatesAreNotReady(t *testing.T, url
}
requireEventually.Error(err)
requireEventually.EqualError(err, fmt.Sprintf(`Get "%s": remote error: tls: unrecognized name`, url))
}, time.Minute, 200*time.Millisecond)
}, 2*time.Minute, 200*time.Millisecond)
}
func requireCreatingFederationDomainCausesDiscoveryEndpointsToAppear(
@ -566,7 +566,7 @@ func requireSuccessEndpointResponse(t *testing.T, endpointURL, issuer, caBundle
responseBody, err = ioutil.ReadAll(response.Body)
requireEventually.NoError(err)
}, time.Minute, 200*time.Millisecond)
}, 2*time.Minute, 200*time.Millisecond)
return response, string(responseBody)
}