Skip to content

Commit

Permalink
update test error message string
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmack committed Aug 6, 2022
1 parent 26299e8 commit 06db52a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/grandpa/message_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1285,8 +1285,9 @@ func TestService_VerifyBlockJustification(t *testing.T) {
justification: []byte{1, 2, 3},
},
want: nil,
wantErr: errors.New("EOF, field: 0x0000000000000000000000000000000000000000000000000000000000000000, " +
"field: {Hash:0x0000000000000000000000000000000000000000000000000000000000000000 Number:0 Precommits:[]}"),
wantErr: errors.New("unmarshalling {0 {0x0000000000000000000000000000000000000000000000000000000000" +
"000000 0 []}}: decoding struct: unmarshalling field at index {1 0}: decoding struct: unmarshalling " +
"field at index {0 0}: decoding array: unmarshalling: decoding fixed width int: reading byte: EOF"),
},
"valid justification": {
fields: fields{
Expand Down

0 comments on commit 06db52a

Please sign in to comment.