mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-15 01:54:06 -08:00
20d0bf4d65
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 |