From 4288a67f1053e55785f24bfedb3a62753039ccd9 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 30 Nov 2016 11:57:16 +0100 Subject: [PATCH] Fix: Give the process kill a bit more time to succeed --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 0604a1d..cf5575b 100644 --- a/main.go +++ b/main.go @@ -155,7 +155,7 @@ func executeAndRegisterCheck(ctx context.Context, checkID string) { case <-ctx.Done(): log.Printf("Execution of check '%s' was killed through context timeout.", checkID) cmd.Process.Kill() - time.Sleep(time.Millisecond) + time.Sleep(100 * time.Millisecond) } } }