chore(deps): update dependency golangci/golangci-lint to v2.3.1 (#2158)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
renovate[bot]
2025-08-03 04:27:21 +02:00
committed by GitHub
parent c4ab8cb8a5
commit 6c9a5b66e2
3 changed files with 7 additions and 3 deletions

View File

@@ -91,5 +91,5 @@ jobs:
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
with:
# renovate: github=golangci/golangci-lint
version: v2.2.2
version: v2.3.1
args: "--max-same-issues=0"

View File

@@ -171,8 +171,10 @@ func waitUntilListening(tb testing.TB, network, address string) error {
err error
)
dialer := &net.Dialer{Timeout: 100 * time.Millisecond}
for range 20 {
conn, err = net.DialTimeout(network, address, 100*time.Millisecond)
conn, err = dialer.DialContext(tb.Context(), network, address)
if err == nil {
_ = conn.Close()

View File

@@ -38,7 +38,9 @@ func TestGetTCPConnectionStates(t *testing.T) {
func TestGetOwnerPIDOfTCPPort(t *testing.T) {
t.Parallel()
lister, err := net.Listen("tcp", "127.0.0.1:0")
var listenConf net.ListenConfig
lister, err := listenConf.Listen(t.Context(), "tcp", "127.0.0.1:0")
require.NoError(t, err)
t.Cleanup(func() {