Skip to content

Commit

Permalink
Fix test after disconnect on non-canonical
Browse files Browse the repository at this point in the history
  • Loading branch information
algorandskiy committed Aug 8, 2024
1 parent 8701866 commit 95184b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/txHandler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2781,7 +2781,7 @@ func TestTxHandlerValidateIncomingTxMessage(t *testing.T) {
stxn := stxns[0]
blobNonCan := craftNonCanonical(t, &stxn, blob)
outmsg = handler.validateIncomingTxMessage(network.IncomingMessage{Data: blobNonCan})
require.Equal(t, outmsg.Action, network.Ignore)
require.Equal(t, outmsg.Action, network.Disconnect)

// invalid signature
stxns, _ = makeTxns(addresses, secrets, 1, 2, genesisHash)
Expand Down Expand Up @@ -2814,6 +2814,6 @@ func TestTxHandlerValidateIncomingTxMessage(t *testing.T) {
stxn := stxns[0]
blobNonCan := craftNonCanonical(t, &stxn, blob)
outmsg = handler.validateIncomingTxMessage(network.IncomingMessage{Data: blobNonCan})
require.Equal(t, outmsg.Action, network.Ignore)
require.Equal(t, outmsg.Action, network.Disconnect)
})
}

0 comments on commit 95184b5

Please sign in to comment.