mirror of
https://github.com/containers/podman.git
synced 2025-09-19 23:03:16 +08:00
ginkgo tests: apply ginkgolinter fixes
New fixes since my last commit 2ddf1c5cbd11. https://github.com/nunnatsa/ginkgolinter Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -156,14 +156,14 @@ var _ = Describe("Common functions test", func() {
|
||||
bitSize := 1024
|
||||
|
||||
publicKeyFileName, privateKeyFileName, err := WriteRSAKeyPair(fileName, bitSize)
|
||||
Expect(err).To(BeNil(), "Failed to write RSA key pair to files.")
|
||||
Expect(err).ToNot(HaveOccurred(), "Failed to write RSA key pair to files.")
|
||||
|
||||
read, err := os.Open(publicKeyFileName)
|
||||
Expect(err).To(BeNil(), "Cannot find the public key file after we write it.")
|
||||
Expect(err).ToNot(HaveOccurred(), "Cannot find the public key file after we write it.")
|
||||
defer read.Close()
|
||||
|
||||
read, err = os.Open(privateKeyFileName)
|
||||
Expect(err).To(BeNil(), "Cannot find the private key file after we write it.")
|
||||
Expect(err).ToNot(HaveOccurred(), "Cannot find the private key file after we write it.")
|
||||
defer read.Close()
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user