mirror of https://github.com/prometheus/prometheus
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.pull/1030/head
parent
6664b77f36
commit
3fd5826589
Loading…
Reference in new issue