Skip to content

Commit

Permalink
make only one test tx after pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
magicxyyz committed Dec 22, 2023
1 parent 32883f1 commit cb4d3c5
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions system_tests/pruning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,9 @@ func TestPruning(t *testing.T) {
defer cancel()

builder.L2Info.GenerateAccount("User2")
var txs []*types.Transaction
for i := uint64(0); i < 10; i++ {
tx := builder.L2Info.PrepareTx("Owner", "User2", builder.L2Info.TransferGas, common.Big1, nil)
txs = append(txs, tx)
err := builder.L2.Client.SendTransaction(ctx, tx)
Require(t, err)
}
for _, tx := range txs {
_, err := builder.L2.EnsureTxSucceeded(tx)
Require(t, err)
}
tx := builder.L2Info.PrepareTx("Owner", "User2", builder.L2Info.TransferGas, common.Big1, nil)
err := builder.L2.Client.SendTransaction(ctx, tx)
Require(t, err)
_, err = builder.L2.EnsureTxSucceeded(tx)
Require(t, err)
}

0 comments on commit cb4d3c5

Please sign in to comment.