mirror of
https://github.com/prometheus/prometheus
synced 2025-01-15 19:32:05 +00:00
b43358fd43
Add unit tests for Web API's query endpoint (GET/POST). Also modify the endpoint handler to use context.WithDeadline instead of context.WithTimeout, so the deadline is deterministic for the tests. Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> |
||
---|---|---|
.. | ||
api/v1 | ||
ui | ||
federate_test.go | ||
federate.go | ||
web_test.go | ||
web.go |