From 4c798584ff786226909426ea8fd8e33932d76fd8 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 27 Jul 2018 12:41:48 +0200 Subject: [PATCH] try another way to kill process on windows --- testing/scenarios/common.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testing/scenarios/common.go b/testing/scenarios/common.go index b6b57f39..98b94eab 100644 --- a/testing/scenarios/common.go +++ b/testing/scenarios/common.go @@ -113,7 +113,11 @@ func CloseAllServers(servers []*exec.Cmd) { Content: "Closing all servers.", }) for _, server := range servers { - server.Process.Signal(syscall.SIGTERM) + if runtime.GOOS == "windows" { + server.Process.Kill() + } else { + server.Process.Signal(syscall.SIGTERM) + } } for _, server := range servers { server.Process.Wait()