Skip to content

Commit

Permalink
Fixing typo in test function
Browse files Browse the repository at this point in the history
Signed-off-by: Kristiyan Gostev <kristiyan.gostev@bosch.io>
  • Loading branch information
Kristiyan Gostev committed Dec 7, 2022
1 parent bd5e4ce commit 9265423
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions util/tls/tls_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@ import (
"testing"
)

var (
certFile = "testdata/certificate.pem"
keyFile = "testdata/key.pem"
caFile = "testdata/ca.crt"
)
var ()

func TesCertificateSettings(t *testing.T) {
failedToLoadError := "failed to load X509 key pair: open %s: no such file or directory"
noSuchCAFileError := "failed to load CA: open %s: no such file or directory"
nonExisting := "nonexisting.test"
invalidFile := "testdata/invalid.pem"
func TestCertificateSettings(t *testing.T) {
var (
failedToLoadError = "failed to load X509 key pair: open %s: no such file or directory"
noSuchCAFileError = "failed to load CA: open %s: no such file or directory"
nonExisting = "nonexisting.test"
invalidFile = "testdata/invalid.pem"
certFile = "testdata/certificate.pem"
keyFile = "testdata/key.pem"
caFile = "testdata/ca.crt"
)

testCases := map[string]struct {
CAFile string
Expand Down

0 comments on commit 9265423

Please sign in to comment.