From bb895a38537319d43ef6a6a7966653fdefe5b66e Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Fri, 24 Jan 2025 09:14:27 +0100 Subject: [PATCH] Fix `should not show help running rmi -a` e2e test We need to remove the used image otherwise the test will fail. This patch will fix that behavior. Signed-off-by: Sascha Grunert --- test/e2e/inspect_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/inspect_test.go b/test/e2e/inspect_test.go index 5c7b2f83f8..4f24bcc55f 100644 --- a/test/e2e/inspect_test.go +++ b/test/e2e/inspect_test.go @@ -54,8 +54,8 @@ var _ = t.Describe("inspect", func() { }) AfterEach(func() { - res := t.Crictl("rmp -f " + sandbox) - Expect(res).To(Exit(0)) + Expect(t.Crictl("rmp -f " + sandbox)).To(Exit(0)) + Expect(t.Crictl("rmi " + imageLatest)).To(Exit(0)) }) validateSingleResponse := func(contents []byte) {