mirror of
https://github.com/containers/podman.git
synced 2025-10-16 18:53:19 +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:
@ -145,7 +145,7 @@ var _ = Describe("Podman rm", func() {
|
||||
|
||||
It("podman rm --cidfile", func() {
|
||||
tmpDir, err := os.MkdirTemp("", "")
|
||||
Expect(err).To(BeNil())
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
tmpFile := tmpDir + "cid"
|
||||
|
||||
defer os.RemoveAll(tmpDir)
|
||||
@ -166,7 +166,7 @@ var _ = Describe("Podman rm", func() {
|
||||
|
||||
It("podman rm multiple --cidfile", func() {
|
||||
tmpDir, err := os.MkdirTemp("", "")
|
||||
Expect(err).To(BeNil())
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
tmpFile1 := tmpDir + "cid-1"
|
||||
tmpFile2 := tmpDir + "cid-2"
|
||||
|
||||
|
Reference in New Issue
Block a user