MCPcopy Create free account
hub / github.com/cortexproject/cortex / verifyLoop

Method verifyLoop

pkg/testexporter/correctness/runner.go:160–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160func (r *Runner) verifyLoop() {
161 defer r.wg.Done()
162
163 ticker := time.NewTicker(time.Second / time.Duration(r.cfg.testRate))
164 defer ticker.Stop()
165
166 for {
167 select {
168 case <-r.quit:
169 return
170 case <-ticker.C:
171 r.runRandomTest()
172 }
173 }
174}
175
176func (r *Runner) runRandomTest() {
177 r.mtx.Lock()

Callers 1

NewRunnerFunction · 0.95

Calls 3

runRandomTestMethod · 0.95
DoneMethod · 0.80
StopMethod · 0.65

Tested by

no test coverage detected