Fix some tests (#245)

* TestUpdateEmptyContext for CBOR
* Properly name CBOR 64 bit tests
This commit is contained in:
Eugene 2020-06-25 23:48:07 +02:00 committed by GitHub
parent 1b763497ee
commit 9e51190d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -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) {

View File

@ -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)
}
}