chore(deps): update dependency go to v1.24.1 (#1937)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
Jan-Otto Kröpke
2025-03-14 10:05:40 +01:00
committed by GitHub
parent fce1e71cac
commit 221cfec732
8 changed files with 11 additions and 12 deletions

View File

@@ -43,7 +43,10 @@ func TestGetOwnerPIDOfTCPPort(t *testing.T) {
require.NoError(t, lister.Close())
})
pid, err := iphlpapi.GetOwnerPIDOfTCPPort(windows.AF_INET, uint16(lister.Addr().(*net.TCPAddr).Port))
tcpAddr, ok := lister.Addr().(*net.TCPAddr)
require.True(t, ok)
pid, err := iphlpapi.GetOwnerPIDOfTCPPort(windows.AF_INET, uint16(tcpAddr.Port))
require.NoError(t, err)
require.EqualValues(t, os.Getpid(), pid)
}