mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-14 17:44: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. |
||
---|---|---|
.. | ||
discovery | ||
testdata | ||
helpers_test.go | ||
relabel.go | ||
relabel_test.go | ||
target.go | ||
target_test.go | ||
targetmanager.go | ||
targetmanager_test.go |