Skip to content
Snippets Groups Projects
Commit 7e25bac1 authored by Jono Wenger's avatar Jono Wenger
Browse files

Add sleep to TestManager_StartProcesses_Stop to fix intermittent failure

parent 2463bcee
1 merge request!53Release
...@@ -186,6 +186,11 @@ func TestManager_StartProcesses_Stop(t *testing.T) { ...@@ -186,6 +186,11 @@ func TestManager_StartProcesses_Stop(t *testing.T) {
t.Errorf("Failed to close: %+v", err) t.Errorf("Failed to close: %+v", err)
} }
// Wait for the stoppable to close
for !stop.IsStopped() {
time.Sleep(10 * time.Millisecond)
}
m.swb.(*switchboard.Switchboard).Speak(receiveMsg) m.swb.(*switchboard.Switchboard).Speak(receiveMsg)
timer := time.NewTimer(50 * time.Millisecond) timer := time.NewTimer(50 * time.Millisecond)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment