Skip to content

Commit

Permalink
fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
cristure committed Jul 8, 2024
1 parent 54eef16 commit b17142d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions process/resultsParser/resultsParser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,11 @@ func Test_SliceDataInFields(t *testing.T) {
t.Parallel()

data := "ESDTTransfer@4245452d636233376236@05f98a44"
rc := fromBuffer(*bytes.NewBufferString("73776170546f6b656e734669786564496e707574"))

returnCode, bufferBytes, err := sliceDataFieldInParts(data)
require.NoError(t, err)
require.Equal(t, &rc, returnCode)
require.Len(t, bufferBytes, 2)
require.Equal(t, ErrCannotProcessDataField, err)
require.Nil(t, returnCode)
require.Nil(t, bufferBytes)
})

t.Run("esdt transfer with no arguments", func(t *testing.T) {
Expand Down

0 comments on commit b17142d

Please sign in to comment.