mounttest: wait for all background Close/Release after writing a file
The filesystem does a certain amount of things asynchronously waiting for the file to be released after writing it means everything should be in a consistent state.
This commit is contained in:
parent
60945d0a37
commit
e98e550021
4 changed files with 16 additions and 3 deletions
|
@ -45,5 +45,6 @@ func TestWriteFileDoubleClose(t *testing.T) {
|
|||
err = syscall.Close(fd2)
|
||||
assert.NoError(t, err)
|
||||
|
||||
run.waitForWriters()
|
||||
run.rm(t, "testdoubleclose")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue