Skip to content

Commit b1bd2b3

Browse files
committed
Do no eval enabledFn in provider test
1 parent 04b2db7 commit b1bd2b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdk/log/provider_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ func TestNewLoggerProviderConfiguration(t *testing.T) {
152152
for key, value := range tc.envars {
153153
t.Setenv(key, value)
154154
}
155-
assert.Equal(t, tc.want, NewLoggerProvider(tc.options...))
155+
got := NewLoggerProvider(tc.options...)
156+
got.enabledFn = nil // Functions are not comparable.
157+
assert.Equal(t, tc.want, got)
156158
})
157159
}
158160
}

0 commit comments

Comments
 (0)