forked from TrueCloudLab/rclone
fstests: ignore main directory creation in TestFsChangeNotify
This commit is contained in:
parent
9e6ba92a11
commit
0f03e55cd1
1 changed files with 5 additions and 1 deletions
|
@ -1005,7 +1005,11 @@ func Run(t *testing.T, opt *Opt) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if e == fs.EntryDirectory {
|
if e == fs.EntryDirectory {
|
||||||
|
if x != "dir" {
|
||||||
|
// ignore the base directory creation which we sometimes
|
||||||
|
// catch and sometimes don't
|
||||||
dirChanges = append(dirChanges, x)
|
dirChanges = append(dirChanges, x)
|
||||||
|
}
|
||||||
} else if e == fs.EntryObject {
|
} else if e == fs.EntryObject {
|
||||||
objChanges = append(objChanges, x)
|
objChanges = append(objChanges, x)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue