From a55fdbb49c94038a8e9b88dd876b175e32292697 Mon Sep 17 00:00:00 2001 From: Urvashi Mohnani Date: Tue, 9 Nov 2021 10:01:51 -0500 Subject: Print headers for system connection ls Print out the headers even if the system connection list is empty to match the behavior of other list commands. Signed-off-by: Urvashi Mohnani --- test/e2e/system_connection_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/e2e') diff --git a/test/e2e/system_connection_test.go b/test/e2e/system_connection_test.go index c0e29d525..76b442ce8 100644 --- a/test/e2e/system_connection_test.go +++ b/test/e2e/system_connection_test.go @@ -236,7 +236,7 @@ var _ = Describe("podman system connection", func() { session := podmanTest.Podman(cmd) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) - Expect(session.Out.Contents()).Should(BeEmpty()) + Expect(len(session.OutputToStringArray())).Should(Equal(1)) Expect(session.Err.Contents()).Should(BeEmpty()) }) }) -- cgit v1.2.3-54-g00ecf