diff --git a/sdk/log/provider_test.go b/sdk/log/provider_test.go index 39071b6a98f7..4d2d7e5beb93 100644 --- a/sdk/log/provider_test.go +++ b/sdk/log/provider_test.go @@ -152,7 +152,9 @@ func TestNewLoggerProviderConfiguration(t *testing.T) { for key, value := range tc.envars { t.Setenv(key, value) } - assert.Equal(t, tc.want, NewLoggerProvider(tc.options...)) + got := NewLoggerProvider(tc.options...) + got.enabledFn = nil // Functions are not comparable. + assert.Equal(t, tc.want, got) }) } }