Skip to content

Commit 745630a

Browse files
committed
system test: add small delay for background transactions
1 parent 57c1577 commit 745630a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

system_tests/staker_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import (
4646

4747
func makeBackgroundTxs(ctx context.Context, builder *NodeBuilder) error {
4848
for i := uint64(0); ctx.Err() == nil; i++ {
49+
time.Sleep(time.Millisecond * 100)
4950
builder.L2Info.Accounts["BackgroundUser"].Nonce.Store(i)
5051
tx := builder.L2Info.PrepareTx("BackgroundUser", "BackgroundUser", builder.L2Info.TransferGas, common.Big0, nil)
5152
err := builder.L2.Client.SendTransaction(ctx, tx)

0 commit comments

Comments
 (0)