From 844911ce078544c0d950b86ef09e6d19270ed33a Mon Sep 17 00:00:00 2001 From: Simon Eskildsen Date: Tue, 20 Jan 2015 20:38:13 -0500 Subject: [PATCH] test: remove deprecated #len calls --- logrus_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logrus_test.go b/logrus_test.go index 5302542..7f52c6f 100644 --- a/logrus_test.go +++ b/logrus_test.go @@ -223,7 +223,7 @@ func TestDoubleLoggingDoesntPrefixPreviousFields(t *testing.T) { err := json.Unmarshal(buffer.Bytes(), &fields) assert.NoError(t, err, "should have decoded first message") - assert.Len(t, fields, 4, "should only have msg/time/level/context fields") + assert.Equal(t, len(fields), 4, "should only have msg/time/level/context fields") assert.Equal(t, fields["msg"], "looks delicious") assert.Equal(t, fields["context"], "eating raw fish") @@ -233,7 +233,7 @@ func TestDoubleLoggingDoesntPrefixPreviousFields(t *testing.T) { err = json.Unmarshal(buffer.Bytes(), &fields) assert.NoError(t, err, "should have decoded second message") - assert.Len(t, fields, 4, "should only have msg/time/level/context fields") + assert.Equal(t, len(fields), 4, "should only have msg/time/level/context fields") assert.Equal(t, fields["msg"], "omg it is!") assert.Equal(t, fields["context"], "eating raw fish") assert.Nil(t, fields["fields.msg"], "should not have prefixed previous `msg` entry")