From 553b519d0f2fa7c9b4b4612143c1ad5d3d1ad1a9 Mon Sep 17 00:00:00 2001 From: Andrew Keesler Date: Tue, 11 Aug 2020 16:09:31 -0400 Subject: [PATCH] test/integration: bump cert expiration delta to help flake Signed-off-by: Andrew Keesler --- test/integration/loginrequest_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/loginrequest_test.go b/test/integration/loginrequest_test.go index e3c27c24..6dc2f191 100644 --- a/test/integration/loginrequest_test.go +++ b/test/integration/loginrequest_test.go @@ -76,7 +76,7 @@ func TestSuccessfulLoginRequest(t *testing.T) { require.NotEmpty(t, response.Status.Credential.ClientCertificateData) require.NotEmpty(t, response.Status.Credential.ClientKeyData) require.NotNil(t, response.Status.Credential.ExpirationTimestamp) - require.InDelta(t, time.Until(response.Status.Credential.ExpirationTimestamp.Time), 1*time.Hour, float64(5*time.Second)) + require.InDelta(t, time.Until(response.Status.Credential.ExpirationTimestamp.Time), 1*time.Hour, float64(3*time.Minute)) require.NotNil(t, response.Status.User) require.NotEmpty(t, response.Status.User.Name) require.Contains(t, response.Status.User.Groups, "tmc:member")