Skip to content

Commit

Permalink
Fixing test (thanks @sepetrov)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtyr committed Jun 26, 2018
1 parent 7001319 commit b4a4908
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/inputs/x509_cert/x509_cert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestGatherRemote(t *testing.T) {

config := &tls.Config{
InsecureSkipVerify: true,
Certificates: []tls.Certificate{pair},
Certificates: []tls.Certificate{pair},
}

ln, err := tls.Listen("tcp", ":0", config)
Expand Down Expand Up @@ -77,6 +77,7 @@ func TestGatherRemote(t *testing.T) {
Timeout: internal.Duration{Duration: test.timeout},
}

sc.InsecureSkipVerify = true
closeConn = test.close
unsetCerts = test.unset

Expand Down

0 comments on commit b4a4908

Please sign in to comment.