test/integration: more logging to track down flakes
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
parent
056afc17bd
commit
0bd428e45d
@ -599,6 +599,9 @@ func requireStatus(t *testing.T, client pinnipedclientset.Interface, ns, name st
|
||||
var err error
|
||||
assert.Eventually(t, func() bool {
|
||||
opc, err = client.ConfigV1alpha1().OIDCProviders(ns).Get(ctx, name, metav1.GetOptions{})
|
||||
if err != nil {
|
||||
t.Logf("error trying to get OIDCProvider: %s", err.Error())
|
||||
}
|
||||
return err == nil && opc.Status.Status == status
|
||||
}, 10*time.Second, 200*time.Millisecond)
|
||||
require.NoError(t, err)
|
||||
|
@ -169,6 +169,9 @@ func TestSupervisorLogin(t *testing.T) {
|
||||
var tokenResponse *oauth2.Token
|
||||
assert.Eventually(t, func() bool {
|
||||
tokenResponse, err = downstreamOAuth2Config.Exchange(oidcHTTPClientContext, authcode, pkceParam.Verifier())
|
||||
if err != nil {
|
||||
t.Logf("error trying to exchange auth code (%s), trying again", err.Error())
|
||||
}
|
||||
return err == nil
|
||||
}, time.Second*5, time.Second*1)
|
||||
require.NoError(t, err)
|
||||
|
Loading…
Reference in New Issue
Block a user