Ver código fonte

Merge pull request #40994 from gaurav1086/rm_test_fix_goroutine_leak

rm_test: fix goroutine leak
Sebastiaan van Stijn 5 anos atrás
pai
commit
3f36764844
1 arquivos alterados com 1 adições e 1 exclusões
  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)
 	}
 
-	done := make(chan struct{})
+	done := make(chan struct{}, 1)
 	go func() {
 		err = EnsureRemoveAll(dir1)
 		close(done)