Merge pull request #171 from Sirupsen/fix/broken-test-by-json-unmarshal

assertify changed behavior and consider float64 != int
This commit is contained in:
Antoine Grondin 2015-04-22 22:53:12 -04:00
commit 26709e2714
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ func TestUserSuppliedLevelFieldHasPrefix(t *testing.T) {
log.WithField("level", 1).Info("test") log.WithField("level", 1).Info("test")
}, func(fields Fields) { }, func(fields Fields) {
assert.Equal(t, fields["level"], "info") 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
}) })
} }