prometheus/discovery/file
Krasi Georgiev c8a735ceb6 Fix flaky file discovery tests (#3438)
* flaky test caused by invalid fsnotify updates before the test files are written to disk causing the fd service to send empty `group[]` struct

* `close(filesReady)` needs to be before the file closing so that fsnotify triggers a new loop of the discovery service.

* nits

* use filepath.Join for the path url to be cross platform

* stupid mistake revert
2017-11-11 17:20:39 +01:00
..
fixtures Fix target group foreach nil bug, directly return err. 2017-08-22 08:37:39 +08:00
file.go Migrate "golang.org/x/net/context" -> "context" (#3333) 2017-10-24 21:21:42 -07:00
file_test.go Fix flaky file discovery tests (#3438) 2017-11-11 17:20:39 +01:00