Skip to content

Commit

Permalink
Fix some tests (#245)
Browse files Browse the repository at this point in the history
* TestUpdateEmptyContext for CBOR
* Properly name CBOR 64 bit tests
  • Loading branch information
ffenix113 committed Jun 25, 2020
1 parent 1b76349 commit 9e51190
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion log_test.go
Expand Up @@ -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)
}
}

0 comments on commit 9e51190

Please sign in to comment.