io_uring unit tests hard code a port to listen on, which is very naughty #14907
Labels
bug
Observed behavior contradicts documented or intended behavior
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
standard library
This issue involves writing Zig code for the standard library.
Milestone
zig/lib/std/os/linux/io_uring.zig
Line 2027 in 9622991
zig/lib/std/os/linux/io_uring.zig
Line 2519 in 9622991
zig/lib/std/os/linux/io_uring.zig
Line 3239 in 9622991
You can't just grab some arbitrary port and start using it in unit tests. That port could be used by the system causing the unit tests to fail with EADDRINUSE. Or... it could be used by the very same unit tests, in another process, which is the situation happening now, in #14647. Unit tests must bind to port 0, letting the operating system assign a port, and then use that port for testing.
I will now disable all of these tests that hard code a port number.
The text was updated successfully, but these errors were encountered: