From 9ce7ade8c8dedb6a082614e45aa10d0e37c725cc Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Tue, 30 Nov 2021 13:14:56 -0700 Subject: e2e: yet more cleanup of BeTrue/BeFalse Thanks to Paul for teaching me about HaveKey() Signed-off-by: Ed Santiago --- test/e2e/images_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/e2e/images_test.go') diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go index 8e21ca606..9cc04e6b0 100644 --- a/test/e2e/images_test.go +++ b/test/e2e/images_test.go @@ -229,11 +229,10 @@ WORKDIR /test result.WaitWithDefaultTimeout() Expect(result).Should(Exit(0)) - found, _ := result.GrepString("") if noneTag { - Expect(found).To(BeTrue()) + Expect(result.OutputToString()).To(ContainSubstring("")) } else { - Expect(found).To(BeFalse()) + Expect(result.OutputToString()).To(Not(ContainSubstring(""))) } } // No "" tag as tagged alpine instances should be present. -- cgit v1.2.3-54-g00ecf