notify icon indicating copy to clipboard operation
notify copied to clipboard

FSEvents: historical events strip needs more magic

Open rjeczalik opened this issue 10 years ago • 1 comments

--- FAIL: TestWatcherShadowedWriteCreate (1.11 seconds)
    testing_test.go:211: watcher_fsevents_test.go:100: ExpectAny received an event which does not match any of the expected ones (i=5): want one of [&notify.Call{F:"", C:(chan notify.EventInfo)(nil), P:"src/github.com/rjeczalik/fs/.fs.go.swp", NP:"", E:0x1000, NE:0x0, S:interface {}(nil)}]; got notify.Delete, 

For the following filesystem actions:

1 $ touch file
2 $ echo XD > file
3 $ echo XD > file
4 $ rm file
5 $ touch file
6 $ echo XD > file

FSEvents reports: event set (event set after strip)

  1. Create | FSEventsIsFile (Create | FSEventsIsFile)
  2. Create | Write | FSEventsInodeMetaMod | FSEventsIsFile (Write | FSEventsInodeMetaMod | FSEventsIsFile)
  3. Create | Write | FSEventsIsFile | FSEventsInodeMetaMod (Write | FSEventsIsFile | FSEventsInodeMetaMod)
  4. Write | Create | Delete | FSEventsInodeMetaMod | FSEventsIsFile (Delete | FSEventsIsFile)
  5. Create | Delete | Write | FSEventsInodeMetaMod | FSEventsIsFile (Create | Write | FSEventsInodeMetaMod | FSEventsIsFile)
  6. Create | Delete | Write | FSEventsInodeMetaMod | FSEventsIsFile (Delete | FSEventsIsFile)

rjeczalik avatar Jan 24 '15 16:01 rjeczalik

https://travis-ci.org/rjeczalik/notify/jobs/51878432

rjeczalik avatar Feb 23 '15 21:02 rjeczalik