Skip to content

Commit

Permalink
Adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
sj14 committed Jun 12, 2024
1 parent 72d7be2 commit 334fe2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decode/decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestDecode(t *testing.T) {
decodings: 2,
expect: expect{
encryption: Proto,
output: []byte(`1:"asd" 2:42 4:4 5:"\n\x14https://exa mple.com\x12\bexa mple" 7:"" `),
output: []byte(`type_url:"asd" 2:42 4:4 5:"\n\x14https://exa mple.com\x12\x08exa mple" 7:""`),
},
},
}
Expand All @@ -103,7 +103,7 @@ func TestDecode(t *testing.T) {
t.Fatalf("expected decoding %v, got %v", tt.expect.encryption, enc)
}
if !bytes.Equal(decoded, tt.expect.output) {
t.Fatalf("expected '%v', got '%v'", tt.expect.output, decoded)
t.Fatalf("expected '%v', got '%v'", string(tt.expect.output), string(decoded))
}
})
}
Expand Down

0 comments on commit 334fe2f

Please sign in to comment.