diff --git a/test/e2e/play_kube_test.go b/test/e2e/play_kube_test.go index 4da73e9420..990ee0f342 100644 --- a/test/e2e/play_kube_test.go +++ b/test/e2e/play_kube_test.go @@ -3665,7 +3665,7 @@ o: {{ .Options.o }}`}) kube := podmanTest.Podman([]string{"play", "kube", kubeYaml}) kube.WaitWithDefaultTimeout() if IsRemote() { - Expect(kube).To(ExitWithError()) + Expect(kube).Should(Exit(125)) Expect(kube.ErrorToString()).To(ContainSubstring("importing volumes is not supported for remote requests")) return }