From 67d5c9171375a483f0220a39b3c158ed493d1cfe Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Thu, 27 May 2021 13:03:07 -0500 Subject: [PATCH] Wait for successful TCR in TestImpersonationProxy. This test setup should tolerate when the TokenCredentialRequest API isn't quite ready to authenticate the user or issue a cert. Signed-off-by: Matt Moyer --- test/integration/concierge_impersonation_proxy_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/concierge_impersonation_proxy_test.go b/test/integration/concierge_impersonation_proxy_test.go index 8fff71a7..7130e17e 100644 --- a/test/integration/concierge_impersonation_proxy_test.go +++ b/test/integration/concierge_impersonation_proxy_test.go @@ -142,7 +142,7 @@ func TestImpersonationProxy(t *testing.T) { //nolint:gocyclo // yeah, it's compl t.Logf("failed to make TokenCredentialRequest: %s", library.Sdump(err)) return false } - return true + return mostRecentTokenCredentialRequestResponse.Status.Credential != nil }, 5*time.Minute, 5*time.Second) require.Nil(t, mostRecentTokenCredentialRequestResponse.Status.Message,