Bind-failure tests check the failure the same way on Windows and Linux #10
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
lantea-one/ninlil#10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The tests occupy a port and assert that the logged reason or health text contains "in use". On
Windows the bind fails with "An attempt was made to access a socket in a way forbidden by its
access permissions" (WSAEACCES), because the occupying socket is exclusive. The product logs the
OS message as it should; the assertion is Linux-specific.
What changes
Tests only:
Dhcpv4ListenerBindFailureTests,Dhcpv6ListenerBindFailureTests(
src/dotnet/tests/Ninlil.Dhcp.Protocol.Dhcpv4.Tests,...Dhcpv6.Tests),TftpServerBindFailureTests(Ninlil.Dhcp.Server.Tftp.Tests),TransportListenersHealthCheckTestsandDhcpServiceHealthCheckTests(Ninlil.Web.Tests),ListenSocketSetTestsTcp and Udp variants (Ninlil.Dns.Server.Core.Tests/Transport). Assert onthe message of the
SocketExceptionthe occupant bind would produce on this OS (take it from theexception the test provokes, or accept
AddressAlreadyInUseorAccessDeniedtexts fromnew SocketException((int)error).Message), not a fixed English phrase. The DHCP ones may insteadreturn early on non-Linux if #11 marks DHCP Linux-only; say which.
Acceptance
temporarily blanking the reason: an assertion failure).
Source
RP-4 report finding 3 ("Port-taken tests");
release-prep.md:159.Ghost referenced this issue2026-11-06 12:32:24 -05:00