Compare commits

...

2 Commits

Author SHA1 Message Date
Anca Zamfir
35dd721054 try different values 2020-02-26 13:39:03 +01:00
Anca Zamfir
b46d40896b try higher sleep val 2020-02-26 10:44:58 +01:00

View File

@@ -329,11 +329,11 @@ func TestReactorTerminationScenarios(t *testing.T) {
reactor.processor.send(rProcessBlock{})
}
// give time for messages to propagate between routines
time.Sleep(time.Millisecond)
time.Sleep(10 * time.Millisecond)
}
// time for processor to finish and reactor to switch to consensus
time.Sleep(20 * time.Millisecond)
time.Sleep(40 * time.Millisecond)
assert.True(t, mockSwitch.hasSwitchedToConsensus())
reactor.Stop()
})