Skip to content

Commit

Permalink
fix breaking test
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed Apr 26, 2024
1 parent 5e15499 commit 0ea83a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestInvalidNodeEncoding(t *testing.T) {
if err != nil {
t.Fatalf("serializing leaf node: %v", err)
}
lnbytes[0] = leafType + internalType // Change the type of the node to something invalid.
lnbytes[0] = 0xc0 // Change the type of the node to something invalid.
if _, err := ParseNode(lnbytes, 0); err != ErrInvalidNodeEncoding {
t.Fatalf("invalid error, got %v, expected %v", err, ErrInvalidNodeEncoding)
}
Expand Down

0 comments on commit 0ea83a3

Please sign in to comment.