aboutsummaryrefslogtreecommitdiff
path: root/middleware/pkg/tls/tls_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/pkg/tls/tls_test.go')
-rw-r--r--middleware/pkg/tls/tls_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/middleware/pkg/tls/tls_test.go b/middleware/pkg/tls/tls_test.go
index fb8d6247f..b6ef220b7 100644
--- a/middleware/pkg/tls/tls_test.go
+++ b/middleware/pkg/tls/tls_test.go
@@ -1,8 +1,8 @@
package tls
import (
- "testing"
- "path/filepath"
+ "path/filepath"
+ "testing"
"github.com/miekg/coredns/middleware/test"
)
@@ -57,7 +57,7 @@ func TestNewTLSConfigFromArgs(t *testing.T) {
t.Error("RootCAs should not be nil when one arg passed")
}
- c, err = NewTLSConfigFromArgs(cert,key)
+ c, err = NewTLSConfigFromArgs(cert, key)
if err != nil {
t.Errorf("Failed to create TLSConfig: %s", err)
}
@@ -67,7 +67,7 @@ func TestNewTLSConfigFromArgs(t *testing.T) {
if len(c.Certificates) != 1 {
t.Error("Certificates should have a single entry when two args passed")
}
- args := []string{cert,key,ca}
+ args := []string{cert, key, ca}
c, err = NewTLSConfigFromArgs(args...)
if err != nil {
t.Errorf("Failed to create TLSConfig: %s", err)