Skip to content

Commit deafb4e

Browse files
committed
rev
1 parent 1ced857 commit deafb4e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/systemtests/mempool/test_ordering.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ func RunTxsOrdering(t *testing.T, base *suite.BaseTestSuite) {
2020
name: "ordering of pending txs %s",
2121
actions: []func(*TestSuite, *TestContext){
2222
func(s *TestSuite, ctx *TestContext) {
23-
accIdx := 0
24-
signer := s.Acc(accIdx)
23+
signer := s.Acc(0)
2524

2625
expPendingTxs := make([]*suite.TxInfo, 5)
2726
for i := 0; i < 5; i++ {
@@ -37,11 +36,7 @@ func RunTxsOrdering(t *testing.T, base *suite.BaseTestSuite) {
3736
}
3837

3938
txInfo, err := s.SendTx(t, nodeId, signer.ID, nonceIdx, s.GasPriceMultiplier(10), big.NewInt(1))
40-
if nonceIdx <= uint64(accIdx) {
41-
require.NoError(t, err, "failed to send tx")
42-
} else {
43-
require.Error(t, err, "expected error for nonce gap")
44-
}
39+
require.NoError(t, err, "failed to send tx")
4540

4641
// nonce order of committed txs: 0,1,2,3,4
4742
expPendingTxs[nonceIdx] = txInfo

0 commit comments

Comments
 (0)