()
| 519 | } |
| 520 | |
| 521 | func (f *notifyFixture) rebuildWatcher() { |
| 522 | // sync any outstanding events and close the old watcher |
| 523 | if f.notify != nil { |
| 524 | f.fsync() |
| 525 | f.closeWatcher() |
| 526 | } |
| 527 | |
| 528 | // create a new watcher |
| 529 | notify, err := NewWatcher(f.paths) |
| 530 | if err != nil { |
| 531 | f.T().Fatal(err) |
| 532 | } |
| 533 | f.notify = notify |
| 534 | err = f.notify.Start() |
| 535 | if err != nil { |
| 536 | f.T().Fatal(err) |
| 537 | } |
| 538 | } |
| 539 | |
| 540 | func (f *notifyFixture) assertEvents(expected ...string) { |
| 541 | f.fsync() |
no test coverage detected