From 84021cfdc3c968535208c6c25bef18a477f8bea1 Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Fri, 19 Nov 2021 13:02:58 +0000 Subject: test: Update error string for --file-locks test Use a substring matching the end of the error message. Closes: #12366 Signed-off-by: Radostin Stoyanov --- test/e2e/checkpoint_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/e2e') diff --git a/test/e2e/checkpoint_test.go b/test/e2e/checkpoint_test.go index 4963b04fc..6b9a96e9f 100644 --- a/test/e2e/checkpoint_test.go +++ b/test/e2e/checkpoint_test.go @@ -1355,7 +1355,7 @@ var _ = Describe("Podman checkpoint", func() { result := podmanTest.Podman([]string{"container", "checkpoint", "test_name"}) result.WaitWithDefaultTimeout() Expect(result).Should(Exit(125)) - Expect(result.ErrorToString()).To(ContainSubstring("criu failed")) + Expect(result.ErrorToString()).To(ContainSubstring("failed: exit status 1")) Expect(podmanTest.NumberOfContainersRunning()).To(Equal(1)) // Checkpoint is expected to succeed with --file-locks -- cgit v1.2.3-54-g00ecf