diff --git a/plugins/inputs/x509_cert/x509_cert_test.go b/plugins/inputs/x509_cert/x509_cert_test.go index f77089b5549b1..afb288881716b 100644 --- a/plugins/inputs/x509_cert/x509_cert_test.go +++ b/plugins/inputs/x509_cert/x509_cert_test.go @@ -341,29 +341,6 @@ func TestGatherTCPCert(t *testing.T) { require.True(t, acc.HasMeasurement("x509_cert")) } -func TestStrings(t *testing.T) { - sc := X509Cert{} - require.NoError(t, sc.Init()) - - tests := []struct { - name string - method string - returned string - expected string - }{ - {name: "description", method: "Description", returned: sc.Description(), expected: description}, - {name: "sample config", method: "SampleConfig", returned: sc.SampleConfig(), expected: sampleConfig}, - } - - for _, test := range tests { - t.Run(test.name, func(t *testing.T) { - if test.returned != test.expected { - t.Errorf("Expected method %s to return '%s', found '%s'.", test.method, test.expected, test.returned) - } - }) - } -} - func TestGatherCertIntegration(t *testing.T) { if testing.Short() { t.Skip("Skipping integration test in short mode")