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/run_dns_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/e2e/run_dns_test.go') diff --git a/test/e2e/run_dns_test.go b/test/e2e/run_dns_test.go index beb6390e0..8b6d535e5 100644 --- a/test/e2e/run_dns_test.go +++ b/test/e2e/run_dns_test.go @@ -44,7 +44,7 @@ var _ = Describe("Podman run dns", func() { session := podmanTest.Podman([]string{"run", "--dns-search=.", ALPINE, "cat", "/etc/resolv.conf"}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) - Expect(session.LineInOutputStartsWith("search")).To(BeFalse()) + Expect(session.OutputToStringArray()).To(Not(ContainElement(HavePrefix("search")))) }) It("podman run add bad dns server", func() { -- cgit v1.2.3-54-g00ecf