mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-13 11:34:15 +00:00
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 <moyerm@vmware.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user