summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGaurav Singh <gaurav1086@gmail.com>2020-05-29 12:36:49 -0400
committerGaurav Singh <gaurav1086@gmail.com>2020-05-29 12:36:49 -0400
commita2b3b67b3f543a54ab0f09500b6c9e18bc33097f (patch)
treeed6c7c638fdd853b9ce64af217d7e16fb489af3a
parentfe464f44b7d3696bafd9a2faf3750e1dc4d56d80 (diff)
runner: fix goroutine leak
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
-rw-r--r--test/runner/runner.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/runner/runner.go b/test/runner/runner.go
index e4f04cd2a..e048e5a9c 100644
--- a/test/runner/runner.go
+++ b/test/runner/runner.go
@@ -204,7 +204,7 @@ func runRunsc(tc gtest.TestCase, spec *specs.Spec) error {
return
}
log.Warningf("%s: Got signal: %v", name, s)
- done := make(chan bool)
+ done := make(chan bool, 1)
dArgs := append([]string{}, args...)
dArgs = append(dArgs, "-alsologtostderr=true", "debug", "--stacks", id)
go func(dArgs []string) {