Commit d80381c6 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fix data race in fuse.TestEntryNotify.

parent 96c47482
......@@ -110,6 +110,8 @@ func TestEntryNotify(t *testing.T) {
dir := test.dir
test.fs.size = 42
test.fs.exist = false
test.state.ThreadSanitizerSync()
fn := dir + "/dir/file"
fi, _ := os.Lstat(fn)
if fi != nil {
......@@ -117,6 +119,7 @@ func TestEntryNotify(t *testing.T) {
}
test.fs.exist = true
test.state.ThreadSanitizerSync()
fi, _ = os.Lstat(fn)
if fi != nil {
t.Errorf("negative entry should have been cached: %#v", fi)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment