From fe2f80c3a117d7434bbbd370e741d13b3b9bff72 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Tue, 11 Aug 2020 12:12:55 -0400 Subject: [PATCH] Use SIGABRT to get a stack trace when the timeout is hit --- sdk/testutil/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/testutil/server.go b/sdk/testutil/server.go index 08930ea54d..11559a416a 100644 --- a/sdk/testutil/server.go +++ b/sdk/testutil/server.go @@ -25,6 +25,7 @@ import ( "runtime" "strconv" "strings" + "syscall" "testing" "time" @@ -340,7 +341,7 @@ func (s *TestServer) Stop() error { case err := <-waitDone: return err case <-time.After(10 * time.Second): - s.cmd.Process.Kill() + s.cmd.Process.Signal(syscall.SIGABRT) s.cmd.Wait() return fmt.Errorf("timeout waiting for server to stop gracefully") }