Skip to content

Commit

Permalink
increase test successness
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Feb 11, 2025
1 parent 3253118 commit 4bb102a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions indexer/prune_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ func Test_PruneIndexer(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, evmTx)

// wait for pruning
for {
time.Sleep(100 * time.Millisecond)

if indexer.IsPruningRunning() {
continue
} else {
break
}
}

// mint 1_000_000 tokens to the first address
tx, evmTxHash2 := tests.GenerateMintERC20Tx(t, app, privKeys[0], common.BytesToAddress(contractAddr), addrs[0], new(big.Int).SetUint64(1_000_000_000_000))
finalizeReq, finalizeRes := tests.ExecuteTxs(t, app, tx)
Expand Down

0 comments on commit 4bb102a

Please sign in to comment.