Skip to content

Commit b4a4908

Browse files
committed
Fixing test (thanks @sepetrov)
1 parent 7001319 commit b4a4908

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/inputs/x509_cert/x509_cert_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func TestGatherRemote(t *testing.T) {
4545

4646
config := &tls.Config{
4747
InsecureSkipVerify: true,
48-
Certificates: []tls.Certificate{pair},
48+
Certificates: []tls.Certificate{pair},
4949
}
5050

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

80+
sc.InsecureSkipVerify = true
8081
closeConn = test.close
8182
unsetCerts = test.unset
8283

0 commit comments

Comments
 (0)