mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-07 06:37:17 +02:00
Merge 9f782164b4
into 457a2381f9
This commit is contained in:
commit
155f4445cb
@ -25,6 +25,7 @@ linters:
|
|||||||
- depguard
|
- depguard
|
||||||
- errorlint
|
- errorlint
|
||||||
- exptostd
|
- exptostd
|
||||||
|
- fatcontext
|
||||||
- gocritic
|
- gocritic
|
||||||
- godot
|
- godot
|
||||||
- loggercheck
|
- loggercheck
|
||||||
|
@ -3700,7 +3700,7 @@ func testEndpoints(t *testing.T, api *API, tr *testTargetRetriever, es storage.E
|
|||||||
// Build a context with the correct request params.
|
// Build a context with the correct request params.
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
for p, v := range test.params {
|
for p, v := range test.params {
|
||||||
ctx = route.WithParam(ctx, p, v)
|
ctx = route.WithParam(ctx, p, v) //nolint:fatcontext // This is intentional to provide the route params.
|
||||||
}
|
}
|
||||||
|
|
||||||
req, err := request(method, test.query)
|
req, err := request(method, test.query)
|
||||||
|
Loading…
Reference in New Issue
Block a user