Merge pull request #98722 from yangjunmyfm192085/run-test10

Fix the error of kms_transformation_test about integration test
This commit is contained in:
Kubernetes Prow Robot 2021-02-03 21:28:28 -08:00 committed by GitHub
commit 5b3333a262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,6 +260,7 @@ func mustBeHealthy(t *testing.T, checkName string, clientConfig *rest.Config) {
var restErr error var restErr error
pollErr := wait.PollImmediate(2*time.Second, wait.ForeverTestTimeout, func() (bool, error) { pollErr := wait.PollImmediate(2*time.Second, wait.ForeverTestTimeout, func() (bool, error) {
status, err := getHealthz(checkName, clientConfig) status, err := getHealthz(checkName, clientConfig)
restErr = err
if err != nil { if err != nil {
return false, err return false, err
} }
@ -267,7 +268,7 @@ func mustBeHealthy(t *testing.T, checkName string, clientConfig *rest.Config) {
}) })
if pollErr == wait.ErrWaitTimeout { if pollErr == wait.ErrWaitTimeout {
t.Fatalf("failed to get the expected healthz status of OK for check: %s, error: %v", restErr, checkName) t.Fatalf("failed to get the expected healthz status of OK for check: %s, error: %v, debug inner error: %v", checkName, pollErr, restErr)
} }
} }
@ -276,6 +277,7 @@ func mustBeUnHealthy(t *testing.T, checkName string, clientConfig *rest.Config)
var restErr error var restErr error
pollErr := wait.PollImmediate(2*time.Second, wait.ForeverTestTimeout, func() (bool, error) { pollErr := wait.PollImmediate(2*time.Second, wait.ForeverTestTimeout, func() (bool, error) {
status, err := getHealthz(checkName, clientConfig) status, err := getHealthz(checkName, clientConfig)
restErr = err
if err != nil { if err != nil {
return false, err return false, err
} }
@ -283,7 +285,7 @@ func mustBeUnHealthy(t *testing.T, checkName string, clientConfig *rest.Config)
}) })
if pollErr == wait.ErrWaitTimeout { if pollErr == wait.ErrWaitTimeout {
t.Fatalf("failed to get the expected healthz status of !OK for check: %s, error: %v", restErr, checkName) t.Fatalf("failed to get the expected healthz status of !OK for check: %s, error: %v, debug inner error: %v", checkName, pollErr, restErr)
} }
} }