forked from Rockachopa/Timmy-time-dashboard
feat: code quality audit + autoresearch integration + infra hardening (#150)
This commit is contained in:
committed by
GitHub
parent
fd0ede0d51
commit
ae3bb1cc21
@@ -25,7 +25,7 @@ COMPOSE_TEST = PROJECT_ROOT / "docker-compose.test.yml"
|
||||
pytestmark = pytest.mark.skipif(
|
||||
subprocess.run(["which", "docker"], capture_output=True).returncode != 0
|
||||
or subprocess.run(["which", "docker-compose"], capture_output=True).returncode != 0,
|
||||
reason="Docker or docker-compose not installed"
|
||||
reason="Docker or docker-compose not installed",
|
||||
)
|
||||
|
||||
|
||||
@@ -188,9 +188,7 @@ class TestDockerAgentSwarm:
|
||||
resp = httpx.get(f"{docker_stack}/swarm/agents", timeout=10)
|
||||
agents = resp.json()["agents"]
|
||||
# Should have at least the 3 agents we started (plus possibly Timmy and auto-spawned ones)
|
||||
worker_count = sum(
|
||||
1 for a in agents if "Worker" in a["name"] or "TestWorker" in a["name"]
|
||||
)
|
||||
worker_count = sum(1 for a in agents if "Worker" in a["name"] or "TestWorker" in a["name"])
|
||||
assert worker_count >= 1 # At least some registered
|
||||
|
||||
_compose("--profile", "agents", "down", timeout=30)
|
||||
|
||||
Reference in New Issue
Block a user