From be1ee3d5d387b9092e022144bfd67ad97c918c00 Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Wed, 1 Aug 2018 23:21:51 -0700 Subject: [PATCH] Change the expected error message to the common part of the responses of 1.11 and 1.12 servers --- test/e2e/apimachinery/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/apimachinery/webhook.go b/test/e2e/apimachinery/webhook.go index d44097f528..17d39a2276 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()) }