Browse Source

retrieval: double timeout in target scrape test.

pull/832/head
Fabian Reinartz 10 years ago
parent
commit
c292979374
  1. 4
      retrieval/target_test.go

4
retrieval/target_test.go

@ -293,7 +293,7 @@ func TestTargetScrapeTimeout(t *testing.T) {
)
defer server.Close()
testTarget := newTestTarget(server.URL, 25*time.Millisecond, clientmodel.LabelSet{})
testTarget := newTestTarget(server.URL, 50*time.Millisecond, clientmodel.LabelSet{})
appender := nopAppender{}
@ -304,7 +304,7 @@ func TestTargetScrapeTimeout(t *testing.T) {
}
// let the deadline lapse
time.Sleep(30 * time.Millisecond)
time.Sleep(55 * time.Millisecond)
// now scrape again
signal <- true

Loading…
Cancel
Save