Fixed a race condition with mounts that caused them to fail

This commit is contained in:
Caleb Gardner
2023-01-04 05:41:43 -06:00
parent f61237a1f0
commit f2d86aff96
3 changed files with 32 additions and 8 deletions
+3 -3
View File
@@ -196,11 +196,11 @@ func TestFuse(t *testing.T) {
if err != nil {
t.Fatal(err)
}
con, err := rdr.Mount("testing/fuseTest")
err = rdr.Mount("testing/fuseTest")
if err != nil {
t.Fatal(err)
}
defer con.Close()
<-con.Ready
defer rdr.Unmount()
rdr.MountWait()
t.Fatal("testing")
}