From 574e00d32469701501b2850eeab11c7c827165e8 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Tue, 20 Jun 2023 08:54:09 +0200 Subject: [PATCH] e2e --authfile test: fix test condition Which revealed that absent --authfile's are ignored but shouldn't. The issue is now being tracked in #18938. Signed-off-by: Valentin Rothberg --- test/e2e/create_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/create_test.go b/test/e2e/create_test.go index 3a9df1956e..10ac0f1be5 100644 --- a/test/e2e/create_test.go +++ b/test/e2e/create_test.go @@ -313,9 +313,10 @@ var _ = Describe("Podman create", func() { }) It("podman create --authfile with nonexistent authfile", func() { + // FIXME (#18938): this test should fail but does not! session := podmanTest.Podman([]string{"create", "--authfile", "/tmp/nonexistent", "--name=foo", ALPINE}) session.WaitWithDefaultTimeout() - Expect(session).ToNot(HaveValue(Equal(0))) + Expect(session).Should(Exit(0)) }) It("podman create --signature-policy", func() {