diff --git a/features/steps/langgraph_graph_coverage_steps.py b/features/steps/langgraph_graph_coverage_steps.py index baba23bcb..861557149 100644 --- a/features/steps/langgraph_graph_coverage_steps.py +++ b/features/steps/langgraph_graph_coverage_steps.py @@ -709,7 +709,10 @@ def step_prepare_slow_executor_bg_loop(context): context.graph.state_manager.update_state = MagicMock() async def slow_execute(state): - await asyncio.sleep(10) + # Use the original (un-patched) asyncio.sleep so the test-infrastructure + # 10 ms sleep cap does not race with the 0.01 s executor timeout. + _real_sleep = getattr(asyncio, "_original_sleep", asyncio.sleep) + await _real_sleep(0.5) return {"messages": ["never"]} context.graph.nodes["worker"].execute = slow_execute @@ -745,7 +748,10 @@ def step_prepare_slow_executor_tp(context): context.graph.state_manager.update_state = MagicMock() async def slow_execute(state): - await asyncio.sleep(10) + # Use the original (un-patched) asyncio.sleep so the test-infrastructure + # 10 ms sleep cap does not race with the 0.01 s executor timeout. + _real_sleep = getattr(asyncio, "_original_sleep", asyncio.sleep) + await _real_sleep(0.5) return {"messages": ["never"]} context.graph.nodes["worker"].execute = slow_execute