diff --git a/test/e2e/apimachinery/webhook.go b/test/e2e/apimachinery/webhook.go index d44097f5285..17d39a22762 100644 --- a/test/e2e/apimachinery/webhook.go +++ b/test/e2e/apimachinery/webhook.go @@ -576,7 +576,7 @@ func testWebhook(f *framework.Framework) { pod = hangingPod(f) _, err = client.CoreV1().Pods(f.Namespace.Name).Create(pod) Expect(err).NotTo(BeNil()) - expectedTimeoutErr := "Timeout: request did not complete within requested timeout 30s" + expectedTimeoutErr := "request did not complete within" if !strings.Contains(err.Error(), expectedTimeoutErr) { framework.Failf("expect timeout error %q, got %q", expectedTimeoutErr, err.Error()) }