From b4a4908b8ca62548b6d9f7949ee0ce468450423d Mon Sep 17 00:00:00 2001 From: Jiri Tyr Date: Tue, 26 Jun 2018 10:58:26 +0100 Subject: [PATCH] Fixing test (thanks @sepetrov) --- plugins/inputs/x509_cert/x509_cert_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/inputs/x509_cert/x509_cert_test.go b/plugins/inputs/x509_cert/x509_cert_test.go index 0e13349e75d0f..54e8b3bde0dda 100644 --- a/plugins/inputs/x509_cert/x509_cert_test.go +++ b/plugins/inputs/x509_cert/x509_cert_test.go @@ -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) @@ -77,6 +77,7 @@ func TestGatherRemote(t *testing.T) { Timeout: internal.Duration{Duration: test.timeout}, } + sc.InsecureSkipVerify = true closeConn = test.close unsetCerts = test.unset