From 9561fcd7d62d543624c02c2af4d192ede4674914 Mon Sep 17 00:00:00 2001 From: Antoine Grondin Date: Wed, 22 Apr 2015 22:48:32 -0400 Subject: [PATCH] assertify changed behavior and consider float64 != int --- logrus_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logrus_test.go b/logrus_test.go index d85dba4..efaacea 100644 --- a/logrus_test.go +++ b/logrus_test.go @@ -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 }) }