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 <umohnani@redhat.com>
This commit is contained in:
Urvashi Mohnani
2021-11-09 10:01:51 -05:00
parent 4bf0146c29
commit a55fdbb49c
3 changed files with 3 additions and 6 deletions

View File

@ -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())
})
})