Skip to content

Commit

Permalink
Fixed codec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
silaslenihan committed Sep 26, 2024
1 parent 19a5d37 commit 1f56cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/codec/encodings/type_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (b *bigEndianInterfaceTester) encode(t *testing.T, bytes []byte, ts TestStr
bytes = append(bytes, []byte(ts.NestedDynamicStruct.Inner.S)...)
bytes = append(bytes, ts.NestedStaticStruct.FixedBytes[:]...)
bytes = rawbin.BigEndian.AppendUint64(bytes, uint64(ts.NestedStaticStruct.Inner.I))
bytes = rawbin.BigEndian.AppendUint32(bytes, uint32(len(ts.NestedStaticStruct.Inner.A)))
bytes = append(bytes, byte(len(ts.NestedStaticStruct.Inner.A)))
bytes = append(bytes, ts.NestedStaticStruct.Inner.A...)
if request.ExtraField {
bytes = append(bytes, 5)
Expand Down

0 comments on commit 1f56cbe

Please sign in to comment.