fstests: ignore main directory creation in TestFsChangeNotify

This commit is contained in:
Nick Craig-Wood 2018-11-15 17:48:38 +00:00
parent 9e6ba92a11
commit 0f03e55cd1
1 changed files with 5 additions and 1 deletions

View File

@ -1005,7 +1005,11 @@ func Run(t *testing.T, opt *Opt) {
return
}
if e == fs.EntryDirectory {
dirChanges = append(dirChanges, x)
if x != "dir" {
// ignore the base directory creation which we sometimes
// catch and sometimes don't
dirChanges = append(dirChanges, x)
}
} else if e == fs.EntryObject {
objChanges = append(objChanges, x)
}