powerdns_exporter
powerdns_exporter copied to clipboard
race condition in test
Hi
When i try to run the test it always fails because readGauge
tries to read the value before scrape
has completed and run e.up.Set(1)
. If i put a time.Sleep(1 * time.Second)
in the test just before readGauge
or change Collect
to include <-jsonStats
then it works fine.