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)