mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Merge pull request #832 from prometheus/fabxc/target-test
retrieval: double timeout in target scrape test.
This commit is contained in:
commit
080e067601
|
@ -293,7 +293,7 @@ func TestTargetScrapeTimeout(t *testing.T) {
|
||||||
)
|
)
|
||||||
defer server.Close()
|
defer server.Close()
|
||||||
|
|
||||||
testTarget := newTestTarget(server.URL, 25*time.Millisecond, clientmodel.LabelSet{})
|
testTarget := newTestTarget(server.URL, 50*time.Millisecond, clientmodel.LabelSet{})
|
||||||
|
|
||||||
appender := nopAppender{}
|
appender := nopAppender{}
|
||||||
|
|
||||||
|
@ -304,7 +304,7 @@ func TestTargetScrapeTimeout(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// let the deadline lapse
|
// let the deadline lapse
|
||||||
time.Sleep(30 * time.Millisecond)
|
time.Sleep(55 * time.Millisecond)
|
||||||
|
|
||||||
// now scrape again
|
// now scrape again
|
||||||
signal <- true
|
signal <- true
|
||||||
|
|
Loading…
Reference in a new issue