Skip to content

Commit

Permalink
fix load certificate with spaces test
Browse files Browse the repository at this point in the history
  • Loading branch information
pete911 committed Jun 30, 2023
1 parent e4f55fb commit 8eb4f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cert/location_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ func Test_loadCertificate(t *testing.T) {
require.NoError(t, err)
})

t.Run("given certificate with extra new lines then cert location is loaded", func(t *testing.T) {
t.Run("given certificate with extra spaces then cert location is loaded", func(t *testing.T) {
certificate := loadTestFile(t, "cert.pem")
certificate = bytes.Join([][]byte{[]byte("\n\n"), certificate}, []byte("/"))
certificate = bytes.Join([][]byte{[]byte(" "), certificate}, []byte(""))
_, err := loadCertificate("test", certificate)
require.NoError(t, err)
})
Expand Down

0 comments on commit 8eb4f4f

Please sign in to comment.