fix(tests): update subprocess config assertion to include agents key - #189
fix(tests): update subprocess config assertion to include agents key#189colombod wants to merge 1 commit into
Conversation
|
Thanks for this — your diagnosis of the symptom was exactly right, and this sat open far longer than it should have. This was fixed from the other direction in #253 (merged as 8402a2c), so I'm closing this as superseded. The extra live_agents = (parent_coord.config or {}).get("agents") or {}A So #253 fixed the mock instead of the assertion. Same green result, but the test keeps asserting the real config shape. Two things your PR is owed credit for: it was open and correct-in-diagnosis for two and a half months while CI didn't exist to surface the failure to anyone else, and chasing down why the assertion disagreed with production led directly to finding a genuine cross-session state leak in the same code path ( If you disagree with the direction, please say so and I'll reopen — happy to be wrong about which side of that assertion was the bug. |
Summary
Fixes a pre-existing test failure on
mainunrelated to any feature work.Problem
tests/test_session_spawner_subprocess.py::TestSubprocessRouting::test_subprocess_param_routes_to_subprocesswas asserting{"session": {}}but the production code now includes{"agents": {}, "session": {}}— theagentskey is always present in the config dict. The test was documented as pre-existing in the PR #186 commit message.Fix
Updated the assertion at line 94 to match the current actual config shape:
Verification
982/982 tests passing after this fix (zero failures).