Skip to content

Commit

Permalink
adjust sync2cache from 200s to 1.5s, for passing the Unit test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhang2023 committed Nov 25, 2024
1 parent 6d62d4d commit 28fb189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func TestGenerateAndImportBlock(t *testing.T) {
for i := 0; i < 5; i++ {
b.txPool.Add([]*types.Transaction{b.newRandomTx(true)}, true, false)
b.txPool.Add([]*types.Transaction{b.newRandomTx(false)}, true, false)
time.Sleep(1 * time.Second) // Wait for txs to be promoted
time.Sleep(2 * time.Second) // Wait for txs to be promoted

select {
case ev := <-sub.Chan():
Expand Down

0 comments on commit 28fb189

Please sign in to comment.