Change the expected error message to the common part of the responses of 1.11 and 1.12 servers

pull/8/head
Chao Xu 2018-08-01 23:21:51 -07:00
parent 23111ad414
commit be1ee3d5d3
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}