try sleeping for stop signal to take effect

This commit is contained in:
Mahmood Ali
2019-04-25 17:16:29 -04:00
parent 978fc65a2b
commit ba373fee2a

View File

@@ -135,6 +135,8 @@ func TestTaskRunner_LogmonHook_ShutdownMidStart(t *testing.T) {
// exited; so this causes process to be non-exited at beginning of call
// then we kill process while Start call is running
require.NoError(t, proc.Signal(syscall.SIGSTOP))
// sleep for the signal to take effect
time.Sleep(1 * time.Second)
go func() {
time.Sleep(2 * time.Second)