mirror of https://github.com/k3s-io/k3s
Change the expected error message to the common part of the responses of 1.11 and 1.12 servers
parent
23111ad414
commit
be1ee3d5d3
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue