From 2a331a5ef7f2d3f044773010ff3221d2ea36a921 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 18 May 2020 20:57:53 -0400 Subject: [PATCH] rm_test: fix goroutine leak Signed-off-by: Gaurav Singh --- pkg/system/rm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/system/rm_test.go b/pkg/system/rm_test.go index aa0ea7ecfd..4ba2c8f47d 100644 --- a/pkg/system/rm_test.go +++ b/pkg/system/rm_test.go @@ -63,7 +63,7 @@ func TestEnsureRemoveAllWithMount(t *testing.T) { t.Fatal(err) } - done := make(chan struct{}) + done := make(chan struct{}, 1) go func() { err = EnsureRemoveAll(dir1) close(done)