mirror of
https://github.com/containers/podman.git
synced 2025-10-13 01:06:10 +08:00
ginkgo tests: apply ginkgolinter fixes
I found the ginkgolinter[1] by accident, this looks for not optimal matching and suggest how to do it better. Overall these fixes seem to be all correct and they will give much better error messages when something fails. Check out the repo to see what the linter reports. [1] https://github.com/nunnatsa/ginkgolinter Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -39,7 +39,7 @@ var _ = Describe("Podman diff", func() {
|
||||
session := podmanTest.Podman([]string{"diff", ALPINE})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(Exit(0))
|
||||
Expect(len(session.OutputToStringArray())).To(BeNumerically(">", 0))
|
||||
Expect(session.OutputToStringArray()).ToNot(BeEmpty())
|
||||
})
|
||||
|
||||
It("podman diff bogus image", func() {
|
||||
@ -135,7 +135,7 @@ RUN echo test
|
||||
session := podmanTest.Podman([]string{"image", "diff", BB})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(Exit(0))
|
||||
Expect(len(session.OutputToStringArray())).To(BeNumerically(">", 0))
|
||||
Expect(session.OutputToStringArray()).ToNot(BeEmpty())
|
||||
})
|
||||
|
||||
It("podman image diff bogus image", func() {
|
||||
|
Reference in New Issue
Block a user