forked from mirror/logrus
Merge pull request #171 from Sirupsen/fix/broken-test-by-json-unmarshal
assertify changed behavior and consider float64 != int
This commit is contained in:
commit
26709e2714
|
@ -191,7 +191,7 @@ func TestUserSuppliedLevelFieldHasPrefix(t *testing.T) {
|
|||
log.WithField("level", 1).Info("test")
|
||||
}, func(fields Fields) {
|
||||
assert.Equal(t, fields["level"], "info")
|
||||
assert.Equal(t, fields["fields.level"], 1)
|
||||
assert.Equal(t, fields["fields.level"], 1.0) // JSON has floats only
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue