From ea762b405d3d29a06abb0113085e0b883fcd9075 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Thu, 24 Sep 2020 10:20:51 -0700 Subject: [PATCH] Increase some integration test timeouts so they can pass when CI is slow --- test/integration/cli_test.go | 2 +- test/integration/credentialrequest_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/cli_test.go b/test/integration/cli_test.go index 738e6bef..60e525df 100644 --- a/test/integration/cli_test.go +++ b/test/integration/cli_test.go @@ -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) diff --git a/test/integration/credentialrequest_test.go b/test/integration/credentialrequest_test.go index 481eba9a..0c69a04b 100644 --- a/test/integration/credentialrequest_test.go +++ b/test/integration/credentialrequest_test.go @@ -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)