Tagged: Linux
1 post tagged “Linux”.
Topics
Posts1 note
Killing `go test` doesn't kill the tests
exec.CommandContext kills only the process it started. go test runs your tests in a child process, so a timeout either leaves orphans behind or hangs Wait, depending on how you call it. Here's what I measured and the four lines that fix it.
5 min read · Go, Linux, CI