mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-28 06:59:40 -08:00
3fd5826589
When the test ends, all files matching the watcher's glob are removed via defer. In that moment, the draining goroutine may still be running and then detect no files matching the configured glob just before the test exits. This is now solved by waiting for the draining goroutine to finish before leaving the test function and thus causing the deferred file removal. |
||
---|---|---|
.. | ||
fixtures | ||
kubernetes | ||
marathon | ||
consul.go | ||
dns.go | ||
file.go | ||
file_test.go | ||
kubernetes.go | ||
marathon.go | ||
marathon_test.go | ||
serverset.go |