mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
fstests: ignore main directory creation in TestFsChangeNotify
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user