k3s/pkg/watch
Daniel Martí ad243edaa3 Fix race condition in watch
The Shutdown() call returned immediately, without waiting for all event
distributions to be completed. Even worse, it would close all the watcher
result channels before all the info was sent to them.

Properly wait for all distributor goroutines - currently only one - to be
finished.

This fixes the flaky test TestBroadcasterDropIfChannelFull. Bonus cleanup on
said test too.
2015-09-10 11:44:14 -07:00
..
json refactor testapi and test scripts to prepare for multiple API groups. 2015-09-04 18:01:32 -07:00
doc.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
filter.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
filter_test.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
iowatcher.go run gofmt on everything we touched 2015-08-05 17:52:56 -07:00
iowatcher_test.go rewrite go imports 2015-08-05 17:30:03 -07:00
mux.go Fix race condition in watch 2015-09-10 11:44:14 -07:00
mux_test.go Fix race condition in watch 2015-09-10 11:44:14 -07:00
watch.go rewrite go imports 2015-08-05 17:30:03 -07:00
watch_test.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00