Target test uses correct telemetry headers

This commit is contained in:
Bernerd Schaefer 2013-04-29 10:36:08 +02:00
parent c98fc8a495
commit b8bc91d6c0

View file

@ -70,7 +70,7 @@ func TestTargetScrapeTimeout(t *testing.T) {
signal := make(chan bool, 1)
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
<-signal
w.Header().Set("X-Prometheus-API-Version", "0.0.1")
w.Header().Set("Content-Type", `application/json; schema="prometheus/telemetry"; version=0.0.2`)
w.Write([]byte(`[]`))
}))