diff --git a/tests/tools/test_docker_network_config.py b/tests/tools/test_docker_network_config.py index 776f5ef6d7c7..62a76a991846 100644 --- a/tests/tools/test_docker_network_config.py +++ b/tests/tools/test_docker_network_config.py @@ -130,7 +130,10 @@ def _reuse_guard_harness(monkeypatch, *, existing_mode: str, network: bool): stdout = "" if len(cmd) > 1 and cmd[1] == "ps": - Result.stdout = "existing-container-id\trunning\n" + # Matches the egress-aware reuse probe: with egress off the + # format string is ID\tState\tEgressLabel and docker renders a + # missing label as "". + Result.stdout = "existing-container-id\trunning\t\n" elif len(cmd) > 1 and cmd[1] == "inspect": Result.stdout = f"{existing_mode}\n" elif len(cmd) > 1 and cmd[1] == "run":