Skip to content

Commit

Permalink
Minor change in unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ortuman committed Mar 26, 2018
1 parent e12dec2 commit 39d713d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion util/tls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package util

import (
"os"
"testing"

"github.com/stretchr/testify/require"
Expand All @@ -17,7 +18,9 @@ func TestLoadCertificate(t *testing.T) {
require.Nil(t, err)
require.NotNil(t, tlsCfg)
})
t.Run("Self-Signed", func(t *testing.T) {
t.Run("SelfSigned", func(t *testing.T) {
defer os.RemoveAll(".cert/")

tlsCfg, err := LoadCertificate("", "", "localhost")
require.Nil(t, err)
require.NotNil(t, tlsCfg)
Expand Down

0 comments on commit 39d713d

Please sign in to comment.