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:
Paul Holzinger
2022-12-20 16:47:17 +01:00
parent ca40371ff5
commit 8e05caef6c
8 changed files with 18 additions and 18 deletions

View File

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