test_find_available_port: use port 5001

macOS now uses port 5000 for the AirPlay receiver functionality, so this
test will always fail on a macOS desktop (unless AirPlay receiver
functionality is disabled like in CI).
This commit is contained in:
Daniël de Kok 2024-01-20 11:57:12 +01:00
parent 3b3b5cdc63
commit fc0de8b8fc

View File

@ -486,8 +486,8 @@ def test_to_ternary_int():
def test_find_available_port():
host = "0.0.0.0"
port = 5000
assert find_available_port(port, host) == port, "Port 5000 isn't free"
port = 5001
assert find_available_port(port, host) == port, "Port 5001 isn't free"
from wsgiref.simple_server import demo_app, make_server