Increase some integration test timeouts so they can pass when CI is slow

This commit is contained in:
Ryan Richard 2020-09-24 10:20:51 -07:00
parent 3ff605bb39
commit ea762b405d
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ func TestCLI(t *testing.T) {
)
// Create a test webhook configuration to use with the CLI.
ctx, cancelFunc := context.WithTimeout(context.Background(), 30*time.Second)
ctx, cancelFunc := context.WithTimeout(context.Background(), 4*time.Minute)
defer cancelFunc()
idp := library.CreateTestWebhookIDP(ctx, t)

View File

@ -46,7 +46,7 @@ func TestSuccessfulCredentialRequest(t *testing.T) {
expectedTestUserGroups := strings.Split(
strings.ReplaceAll(library.GetEnv(t, "PINNIPED_TEST_USER_GROUPS"), " ", ""), ",",
)
ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 6*time.Minute)
defer cancel()
testWebhook := library.CreateTestWebhookIDP(ctx, t)