diff --git a/tests/test_nginx.py b/tests/test_nginx.py index e2a80af7a..bcdea02f8 100644 --- a/tests/test_nginx.py +++ b/tests/test_nginx.py @@ -402,10 +402,10 @@ def get(self, path): @pytest.mark.parametrize("ssl", [False, True], ids=["plain", "ssl"]) @pytest.mark.parametrize("worker_class", TEST_SIMPLE) def test_nginx_proxy(*, ssl, worker_class, dummy_ssl_cert, read_size=1024): - # avoid ports <= 6144 which may be in use by CI runner + # avoid ports <= 6178 which may be in use by CI runner # avoid quickly reusing ports as they might not be cleared immediately on BSD worker_index = WORKER_ORDER.index(worker_class) - fixed_port = 1024 * 6 + (2 if ssl else 0) + (4 * worker_index) + fixed_port = 6178 + 512 + (2 if ssl else 0) + (4 * worker_index) # FIXME: should also test inherited socket (LISTEN_FDS) # FIXME: should also test non-inherited (named) UNIX socket gunicorn_bind = "[::1]:%d" % fixed_port diff --git a/tests/test_wrk.py b/tests/test_wrk.py index efa4b5468..08ccf71d9 100644 --- a/tests/test_wrk.py +++ b/tests/test_wrk.py @@ -367,9 +367,9 @@ def test_wrk(*, ssl, worker_class, dummy_ssl_cert, read_size=1024): if worker_class == "eventlet" and ssl: pytest.skip("eventlet worker does not catch errors in ssl.wrap_socket") - # avoid ports <= 6144 which may be in use by CI runne + # avoid ports <= 6178 which may be in use by CI runne worker_index = WORKER_ORDER.index(worker_class) - fixed_port = 1024 * 6 + 1024 + (2 if ssl else 0) + (4 * worker_index) + fixed_port = 6178 + 1024 + (2 if ssl else 0) + (4 * worker_index) # FIXME: should also test inherited socket (LISTEN_FDS) # FIXME: should also test non-inherited (named) UNIX socket gunicorn_bind = "[::1]:%d" % fixed_port