Fix the error of kms_transformation_test about integration test

Signed-off-by: JunYang <yang.jun22@zte.com.cn>
This commit is contained in:
JunYang 2021-02-04 06:27:48 +08:00
parent 074a517720
commit 256f891728

View File

@ -260,6 +260,7 @@ func mustBeHealthy(t *testing.T, checkName string, clientConfig *rest.Config) {
var restErr error
pollErr := wait.PollImmediate(2*time.Second, wait.ForeverTestTimeout, func() (bool, error) {
status, err := getHealthz(checkName, clientConfig)
restErr = err
if err != nil {
return false, err
}
@ -267,7 +268,7 @@ func mustBeHealthy(t *testing.T, checkName string, clientConfig *rest.Config) {
})
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
pollErr := wait.PollImmediate(2*time.Second, wait.ForeverTestTimeout, func() (bool, error) {
status, err := getHealthz(checkName, clientConfig)
restErr = err
if err != nil {
return false, err
}
@ -283,7 +285,7 @@ func mustBeUnHealthy(t *testing.T, checkName string, clientConfig *rest.Config)
})
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)
}
}