| _runtime = None
|
|
|
| def test_shadow_exception_is_recorded_and_the_run_is_unaffected(_runtime):
|
| """A shadow that raises on every order changes NOTHING about the run — it just lands in the
|
| telemetry as outcome='exception'."""
|
| sim_only = _run(exec_broker="sim")
|
| teed = _run(exec_broker="paper",
|
| broker_factory=_shadow_factory(fail_with=ConnectionError("Errno 61 refused")))
|
| assert _run_result_core(teed) == _run_result_core(sim_only)
|
| rows = [r for nick_rows in teed["shadow_telemetry"].values() for r in nick_rows]
|
| > assert rows, "the tee must still record a row per order even when every mirror fails"
|
| E AssertionError: the tee must still record a row per order even when every mirror fails
|
| E assert []
|
|
|
| tests/services/test_router_parity_execute_sim.py:489: AssertionError
|