mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-28 08:37:22 +00:00
miner: update test re downloader events
Signed-off-by: meows <b5c6@protonmail.com>
This commit is contained in:
parent
2d7fd86a1e
commit
6addca7586
1 changed files with 3 additions and 3 deletions
|
|
@ -89,10 +89,10 @@ func TestMiner(t *testing.T) {
|
|||
// Stop the downloader and wait for the update loop to run
|
||||
mux.Post(downloader.DoneEvent{})
|
||||
waitForMiningState(t, miner, true)
|
||||
// Start the downloader and wait for the update loop to run
|
||||
// Start the downloader, the mining state will not change because the update loop has exited
|
||||
mux.Post(downloader.StartEvent{})
|
||||
waitForMiningState(t, miner, false)
|
||||
// Stop the downloader and wait for the update loop to run
|
||||
waitForMiningState(t, miner, true)
|
||||
// Stop the downloader, the mining state will not change
|
||||
mux.Post(downloader.FailedEvent{})
|
||||
waitForMiningState(t, miner, true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue