mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-26 05:01:23 -08:00
Run scrape loop with interval 1 instead of 0
0 is considered an invalid interval by time.NewTicker() and will cause a panic if control reaches that point. Given the vagaries of timekeeping, this may occasionally happen and make this test unstable.
This commit is contained in:
parent
fcac52ebbf
commit
95cadd0702
|
@ -329,7 +329,7 @@ func TestScrapeLoopStop(t *testing.T) {
|
|||
|
||||
runDone := make(chan struct{})
|
||||
go func() {
|
||||
sl.run(0, 0, nil)
|
||||
sl.run(1, 0, nil)
|
||||
close(runDone)
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in a new issue