feat(subagent): add session-owned task messaging and cancellation (#5985)
let's go!
This commit is contained in:
1 parent
f75470e72f
commit
6ff96f2a8f
93 files changed
+5632
-1156
No files matched your search
@@ -110,6 +110,15 @@ async def test_scheduled_dispatch_is_owned_and_can_be_drained():
|
||||
await bus.drain()
|
||||
|
||||
|
||||
async def test_drain_finishes_when_dispatch_completed_before_its_cleanup_callback():
|
||||
bus = MessageBus()
|
||||
task = bus.publish_nowait(RuntimeModelChanged("model", None))
|
||||
await asyncio.sleep(0)
|
||||
assert task is not None and task.done()
|
||||
await bus.drain()
|
||||
assert not bus._pending
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_runtime_event_bus_filters_by_event_type() -> None:
|
||||
bus = MessageBus()
|
||||
|
||||
Reference in new issue
Block a user