Skip to content

Commit 06db52a

Browse files
committed
update test error message string
1 parent 26299e8 commit 06db52a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/grandpa/message_handler_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,8 +1285,9 @@ func TestService_VerifyBlockJustification(t *testing.T) {
12851285
justification: []byte{1, 2, 3},
12861286
},
12871287
want: nil,
1288-
wantErr: errors.New("EOF, field: 0x0000000000000000000000000000000000000000000000000000000000000000, " +
1289-
"field: {Hash:0x0000000000000000000000000000000000000000000000000000000000000000 Number:0 Precommits:[]}"),
1288+
wantErr: errors.New("unmarshalling {0 {0x0000000000000000000000000000000000000000000000000000000000" +
1289+
"000000 0 []}}: decoding struct: unmarshalling field at index {1 0}: decoding struct: unmarshalling " +
1290+
"field at index {0 0}: decoding array: unmarshalling: decoding fixed width int: reading byte: EOF"),
12901291
},
12911292
"valid justification": {
12921293
fields: fields{

0 commit comments

Comments
 (0)