Skip to content

Commit 334fe2f

Browse files
committed
Adjust test
1 parent 72d7be2 commit 334fe2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

decode/decode_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func TestDecode(t *testing.T) {
8282
decodings: 2,
8383
expect: expect{
8484
encryption: Proto,
85-
output: []byte(`1:"asd" 2:42 4:4 5:"\n\x14https://exa mple.com\x12\bexa mple" 7:"" `),
85+
output: []byte(`type_url:"asd" 2:42 4:4 5:"\n\x14https://exa mple.com\x12\x08exa mple" 7:""`),
8686
},
8787
},
8888
}
@@ -103,7 +103,7 @@ func TestDecode(t *testing.T) {
103103
t.Fatalf("expected decoding %v, got %v", tt.expect.encryption, enc)
104104
}
105105
if !bytes.Equal(decoded, tt.expect.output) {
106-
t.Fatalf("expected '%v', got '%v'", tt.expect.output, decoded)
106+
t.Fatalf("expected '%v', got '%v'", string(tt.expect.output), string(decoded))
107107
}
108108
})
109109
}

0 commit comments

Comments
 (0)