test/integration: bump (another) cert expiration delta to help flake

Related: 553b519.
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Andrew Keesler 2020-08-11 17:22:25 -04:00
parent 553b519d0f
commit 224b59e740
No known key found for this signature in database
GPG Key ID: 27CE0444346F9413
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func TestClient(t *testing.T) {
resp, err := client.ExchangeToken(ctx, tmcClusterToken, string(clientConfig.CAData), clientConfig.Host)
require.NoError(t, err)
require.NotNil(t, resp.ExpirationTimestamp)
require.InDelta(t, time.Until(*resp.ExpirationTimestamp), 1*time.Hour, float64(5*time.Second))
require.InDelta(t, time.Until(*resp.ExpirationTimestamp), 1*time.Hour, float64(3*time.Minute))
// Create a client using the certificate and key returned by the token exchange.
validClient := library.NewClientsetWithConfig(t, library.NewClientConfigWithCertAndKey(t, resp.ClientCertificateData, resp.ClientKeyData))