diff --git a/internal/cbor/types_test_64.go b/internal/cbor/types_64_test.go similarity index 99% rename from internal/cbor/types_test_64.go rename to internal/cbor/types_64_test.go index 728b1719..7f33012e 100644 --- a/internal/cbor/types_test_64.go +++ b/internal/cbor/types_64_test.go @@ -19,7 +19,6 @@ var integerTestCases_64bit = []struct { // Value in 8 bytes. {-0xabcd100000001, "\x3b\x00\x0a\xbc\xd1\x00\x00\x00\x00"}, {-1000000000001, "\x3b\x00\x00\x00\xe8\xd4\xa5\x10\x00"}, - } func TestAppendInt_64bit(t *testing.T) { diff --git a/log_test.go b/log_test.go index 68ffe56a..83e7db1c 100644 --- a/log_test.go +++ b/log_test.go @@ -784,7 +784,7 @@ func TestUpdateEmptyContext(t *testing.T) { want := `{"level":"info","foo":"bar","message":"no panic"}` + "\n" - if got := buf.String(); got != want { + if got := decodeIfBinaryToString(buf.Bytes()); got != want { t.Errorf("invalid log output:\ngot: %q\nwant: %q", got, want) } }