mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 22:37:27 -08:00
Target test uses correct telemetry headers
This commit is contained in:
parent
c98fc8a495
commit
b8bc91d6c0
|
@ -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(`[]`))
|
||||
}))
|
||||
|
||||
|
|
Loading…
Reference in a new issue