From 8b088d42634db642d1b7f36303bd92fcaf56e37f Mon Sep 17 00:00:00 2001 From: Sean Liao Date: Wed, 19 Oct 2022 12:55:28 +0100 Subject: [PATCH] fix test --- exporters/otlp/internal/envconfig/envconfig_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporters/otlp/internal/envconfig/envconfig_test.go b/exporters/otlp/internal/envconfig/envconfig_test.go index cc6b89dcbfe..3bd13255cff 100644 --- a/exporters/otlp/internal/envconfig/envconfig_test.go +++ b/exporters/otlp/internal/envconfig/envconfig_test.go @@ -394,7 +394,7 @@ func TestWithClientCert(t *testing.T) { option = testOption{TestTLS: &tls.Config{Certificates: []tls.Certificate{c}}} }), ) - assert.Equal(t, nil, option.TestTLS.Certificates) + assert.Nil(t, option.TestTLS) reader.GetEnv = func(s string) string { return "" } option.TestTLS = nil @@ -403,7 +403,7 @@ func TestWithClientCert(t *testing.T) { option = testOption{TestTLS: &tls.Config{Certificates: []tls.Certificate{c}}} }), ) - assert.Equal(t, nil, option.TestTLS.Certificates) + assert.Nil(t, option.TestTLS) } func TestStringToHeader(t *testing.T) {