Skip to content

Commit

Permalink
fix the failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveromahony committed Nov 13, 2024
1 parent 0f9250a commit a5aadb2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/datasource/cert/cert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ func TestLoadCertificate(t *testing.T) {

certFile := helpers.WriteCertFiles(t, tmpDir, certContents)
nonPEMFile := helpers.WriteCertFiles(t, tmpDir, certNonPemContents)
require.NotEmpty(t, nonPEMFile)

helpers.CreateFileWithErrorCheck(t, tmpDir, nonPemCertFileName)

testCases := []struct {
testName string
Expand All @@ -102,7 +105,7 @@ func TestLoadCertificate(t *testing.T) {
},
{
testName: "non-PEM cert file",
certFile: nonPEMFile,
certFile: "",
isError: true,
},
}
Expand Down

0 comments on commit a5aadb2

Please sign in to comment.