From 077e41330d64bcdd8e460fce692a5b13d00b868e Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Fri, 24 Jul 2026 09:32:00 -0700 Subject: [PATCH] test(docker): update network-reuse harness fake ps output for egress-aware 3-field probe test_docker_network_config.py landed on main after the #58489 revert and stubbed docker ps with the 2-field ID\tState format. The re-landed egress-aware reuse probe requests ID\tState\tEgressLabel when egress is off, so the fake line failed to parse and the reuse path never fired. Fixture-only change; production behavior is unchanged. --- tests/tools/test_docker_network_config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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":