The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(docker): the stand-in poll tests run in the default test lanes
kshitijk4poora6f9d359aa72
diff --git a/tests/docker/conftest.py b/tests/docker/conftest.pyindex 073189c57b6..b6aebd32de6 100644--- a/tests/docker/conftest.py+++ b/tests/docker/conftest.py@@ -45,8 +45,7 @@ def pytest_collection_modifyitems(config, items):for item in items:if "tests/docker/" not in str(item.fspath).replace(os.sep, "/"):continue- # Modules that set DOCKER_DAEMON_REQUIRED = False drive the helpers with stand-ins.- if not docker_ok and getattr(getattr(item, "module", None), "DOCKER_DAEMON_REQUIRED", True):+ if not docker_ok:item.add_marker(skip_docker)diff --git a/tests/docker/test_poll_stalled_exec.py b/tests/test_docker_poll_stalled_exec.pysimilarity index 95%rename from tests/docker/test_poll_stalled_exec.pyrename to tests/test_docker_poll_stalled_exec.pyindex 72ac7c1fb41..3b75517fcdb 100644--- a/tests/docker/test_poll_stalled_exec.py+++ b/tests/test_docker_poll_stalled_exec.py@@ -1,7 +1,9 @@"""A stalled ``docker exec`` is one failed poll attempt, never the poll's verdict.Driven without Docker: ``docker_exec_sh`` is replaced by a scripted stand-in and the poll's clock-is fake, so the timeout branches run on every host (DOCKER_DAEMON_REQUIRED opts out of the skip).+is fake, so the timeout branches run on every host. The module lives outside ``tests/docker/`` on+purpose: default discovery skips that directory (it needs a daemon and an image), and these+stand-in tests need neither."""from __future__ import annotations@@ -14,8 +16,6 @@ import pytestfrom tests.docker import conftest as docker_conftestfrom tests.docker import test_dashboard-DOCKER_DAEMON_REQUIRED = False-class _Clock:"""``time`` stand-in: each probe attempt and each sleep advance the fake clock."""