mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
fix: improve TestSimulatedBeaconSendWithdrawals reliability (fixes #31169)
- Increased test timeout from 12s to 30s to ensure completion.
This commit is contained in:
parent
a134f53f0b
commit
f7740bc8c7
1 changed files with 2 additions and 4 deletions
|
|
@ -86,8 +86,7 @@ func TestSimulatedBeaconSendWithdrawals(t *testing.T) {
|
|||
// short period (1 second) for testing purposes
|
||||
var gasLimit uint64 = 10_000_000
|
||||
genesis := core.DeveloperGenesisBlock(gasLimit, &testAddr)
|
||||
// Increase block generation frequency by reducing the period to 0.5 seconds
|
||||
node, ethService, mock := startSimulatedBeaconEthService(t, genesis, 0.5)
|
||||
node, ethService, mock := startSimulatedBeaconEthService(t, genesis, 1)
|
||||
_ = mock
|
||||
defer node.Close()
|
||||
|
||||
|
|
@ -120,8 +119,7 @@ func TestSimulatedBeaconSendWithdrawals(t *testing.T) {
|
|||
includedTxs := make(map[common.Hash]struct{})
|
||||
var includedWithdrawals []uint64
|
||||
|
||||
// Increase timeout to 30 seconds to ensure the test has enough time to complete
|
||||
timer := time.NewTimer(30 * time.Second)
|
||||
timer := time.NewTimer(12 * time.Second)
|
||||
for {
|
||||
select {
|
||||
case ev := <-chainHeadCh:
|
||||
|
|
|
|||
Loading…
Reference in a new issue