Merge pull request #40994 from gaurav1086/rm_test_fix_goroutine_leak

rm_test: fix goroutine leak
This commit is contained in:
Sebastiaan van Stijn 2020-07-14 17:41:43 +02:00 committed by GitHub
commit 3f36764844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)