Skip to content

Commit

Permalink
Fix a typo in the codec interface test. The dummy used to test the re…
Browse files Browse the repository at this point in the history
…lay didn't care, but real implmentations will have a decoding error
  • Loading branch information
nolag committed Nov 7, 2023
1 parent db0c082 commit 1cdc980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/types/interfacetests/codec_interface_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func RunChainReaderInterfaceTests(t *testing.T, tester ChainReaderInterfaceTeste
assert.Equal(t, resp, actualEncoding)

var into [1]TestStruct
require.NoError(t, codec.Decode(ctx, actualEncoding, &into, TestItemArray2Type))
require.NoError(t, codec.Decode(ctx, actualEncoding, &into, TestItemArray1Type))
assert.Equal(t, items, into)
},
"Returns an error if type is undefined": func(t *testing.T) {
Expand Down

0 comments on commit 1cdc980

Please sign in to comment.