Browse Source

rm_test: fix goroutine leak

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Gaurav Singh 5 years ago
parent
commit
2a331a5ef7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/system/rm_test.go

+ 1 - 1
pkg/system/rm_test.go

@@ -63,7 +63,7 @@ func TestEnsureRemoveAllWithMount(t *testing.T) {
 		t.Fatal(err)
 		t.Fatal(err)
 	}
 	}
 
 
-	done := make(chan struct{})
+	done := make(chan struct{}, 1)
 	go func() {
 	go func() {
 		err = EnsureRemoveAll(dir1)
 		err = EnsureRemoveAll(dir1)
 		close(done)
 		close(done)