MCPcopy
hub / github.com/docker/compose / closeWatcher

Method closeWatcher

pkg/watch/notify_test.go:633–650  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

631}
632
633func (f *notifyFixture) closeWatcher() {
634 notify := f.notify
635 err := notify.Close()
636 if err != nil {
637 f.T().Fatal(err)
638 }
639
640 // drain channels from watcher
641 go func() {
642 for range notify.Events() {
643 }
644 }()
645
646 go func() {
647 for range notify.Errors() {
648 }
649 }()
650}
651
652func (f *notifyFixture) tearDown() {
653 f.cancel()

Callers 2

rebuildWatcherMethod · 0.95
tearDownMethod · 0.95

Calls 4

TMethod · 0.80
CloseMethod · 0.65
EventsMethod · 0.65
ErrorsMethod · 0.65

Tested by

no test coverage detected