Skip to content

libbeat/testing: use ephemeral ports to avoid TOCTOU collisions #50273

libbeat/testing: use ephemeral ports to avoid TOCTOU collisions

libbeat/testing: use ephemeral ports to avoid TOCTOU collisions #50273

Triggered via pull request July 15, 2026 09:47
Status Failure
Total duration 38m 7s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

30 errors
lint (ubuntu-latest)
issues found
lint (ubuntu-latest): x-pack/packetbeat/tests/integration/otel_test.go#L76
rangeint: for loop can be modernized using range over int (modernize)
lint (ubuntu-latest): heartbeat/monitors/active/http/http_test.go#L506
rangeint: for loop can be modernized using range over int (modernize)
lint (ubuntu-latest): heartbeat/monitors/active/http/http_test.go#L500
mapsloop: Replace m[k]=v loop with maps.Copy (modernize)
lint (ubuntu-latest): heartbeat/monitors/active/http/http_test.go#L294
forvar: copying variable is unneeded (modernize)
lint (ubuntu-latest): heartbeat/monitors/active/http/http_test.go#L252
forvar: copying variable is unneeded (modernize)
lint (ubuntu-latest): heartbeat/monitors/active/http/http_test.go#L114
any: interface{} can be replaced by any (modernize)
lint (ubuntu-latest): heartbeat/monitors/active/http/http_test.go#L81
mapsloop: Replace m[k]=v loop with maps.Copy (modernize)
lint (ubuntu-latest): heartbeat/monitors/active/http/http_test.go#L70
any: interface{} can be replaced by any (modernize)
lint (ubuntu-latest): heartbeat/monitors/active/http/http_test.go#L69
any: interface{} can be replaced by any (modernize)
lint (windows-latest)
issues found
lint (windows-latest): x-pack/packetbeat/tests/integration/otel_test.go#L76
rangeint: for loop can be modernized using range over int (modernize)
lint (windows-latest): heartbeat/monitors/active/http/http_test.go#L506
rangeint: for loop can be modernized using range over int (modernize)
lint (windows-latest): heartbeat/monitors/active/http/http_test.go#L500
mapsloop: Replace m[k]=v loop with maps.Copy (modernize)
lint (windows-latest): heartbeat/monitors/active/http/http_test.go#L294
forvar: copying variable is unneeded (modernize)
lint (windows-latest): heartbeat/monitors/active/http/http_test.go#L252
forvar: copying variable is unneeded (modernize)
lint (windows-latest): heartbeat/monitors/active/http/http_test.go#L114
any: interface{} can be replaced by any (modernize)
lint (windows-latest): heartbeat/monitors/active/http/http_test.go#L81
mapsloop: Replace m[k]=v loop with maps.Copy (modernize)
lint (windows-latest): heartbeat/monitors/active/http/http_test.go#L70
any: interface{} can be replaced by any (modernize)
lint (windows-latest): heartbeat/monitors/active/http/http_test.go#L69
any: interface{} can be replaced by any (modernize)
lint (macos-latest)
issues found
lint (macos-latest): x-pack/packetbeat/tests/integration/otel_test.go#L76
rangeint: for loop can be modernized using range over int (modernize)
lint (macos-latest): heartbeat/monitors/active/http/http_test.go#L506
rangeint: for loop can be modernized using range over int (modernize)
lint (macos-latest): heartbeat/monitors/active/http/http_test.go#L500
mapsloop: Replace m[k]=v loop with maps.Copy (modernize)
lint (macos-latest): heartbeat/monitors/active/http/http_test.go#L294
forvar: copying variable is unneeded (modernize)
lint (macos-latest): heartbeat/monitors/active/http/http_test.go#L252
forvar: copying variable is unneeded (modernize)
lint (macos-latest): heartbeat/monitors/active/http/http_test.go#L114
any: interface{} can be replaced by any (modernize)
lint (macos-latest): heartbeat/monitors/active/http/http_test.go#L81
mapsloop: Replace m[k]=v loop with maps.Copy (modernize)
lint (macos-latest): heartbeat/monitors/active/http/http_test.go#L70
any: interface{} can be replaced by any (modernize)
lint (macos-latest): heartbeat/monitors/active/http/http_test.go#L69
any: interface{} can be replaced by any (modernize)