From 6addca758632cff7b21df04f753ddaff0f6d2b85 Mon Sep 17 00:00:00 2001 From: meows Date: Sat, 3 Oct 2020 08:29:04 -0500 Subject: [PATCH] miner: update test re downloader events Signed-off-by: meows --- miner/miner_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/miner/miner_test.go b/miner/miner_test.go index 2ed03a2397..5b5f0b881c 100644 --- a/miner/miner_test.go +++ b/miner/miner_test.go @@ -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) }