Skip to content

Commit

Permalink
Do no eval enabledFn in provider test
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Aug 7, 2024
1 parent 04b2db7 commit b1bd2b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/log/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
}
Expand Down

0 comments on commit b1bd2b3

Please sign in to comment.