diff --git a/.unreleased/fix_port_parity b/.unreleased/fix_port_parity new file mode 100644 index 000000000..e69de29bb diff --git a/nat-lab/tests/conftest.py b/nat-lab/tests/conftest.py index 2d7028875..6732ceef7 100644 --- a/nat-lab/tests/conftest.py +++ b/nat-lab/tests/conftest.py @@ -73,7 +73,12 @@ async def on_output(output: str) -> None: print(datetime.now(), f"os_ephemeral_ports_{vm_tag}: {output}") start_port = random.randint(5000, 55000) + if start_port % 2: + start_port += 1 num_ports = random.randint(2000, 5000) + if num_ports % 2: + num_ports += 1 + print( datetime.now(), f"Setting up ports for {vm_tag}: start={start_port}, num={num_ports}",