Skip to content

Commit

Permalink
Merge pull request ethereum#103 from ethereum-optimism/fix-min-recomm…
Browse files Browse the repository at this point in the history
…it-test

miner: adjust test to handle updated min-recommit interval
  • Loading branch information
trianglesphere committed Jun 15, 2023
2 parents b5fecf5 + 5ee3df3 commit 39d121a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion miner/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ func testAdjustInterval(t *testing.T, chainConfig *params.ChainConfig, engine co
estimate = estimate*(1-intervalAdjustRatio) + intervalAdjustRatio*(min-intervalAdjustBias)
wantMinInterval, wantRecommitInterval = 3*time.Second, time.Duration(estimate)*time.Nanosecond
case 3:
wantMinInterval, wantRecommitInterval = time.Second, time.Second
// lower than upstream test, since enforced min recommit interval is lower
wantMinInterval, wantRecommitInterval = 500*time.Millisecond, 500*time.Millisecond
}

// Check interval
Expand Down

0 comments on commit 39d121a

Please sign in to comment.