rm_test: fix goroutine leak

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
This commit is contained in:
Gaurav Singh 2020-05-18 20:57:53 -04:00
parent dd16f2f219
commit 2a331a5ef7

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)