powerdns_exporter icon indicating copy to clipboard operation
powerdns_exporter copied to clipboard

race condition in test

Open thechile opened this issue 7 years ago • 0 comments

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.

thechile avatar May 15 '17 07:05 thechile