Fix some tests (#245)
* TestUpdateEmptyContext for CBOR * Properly name CBOR 64 bit tests
This commit is contained in:
parent
1b763497ee
commit
9e51190d47
|
@ -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) {
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue