refactor: make download and transfer events durable

This commit is contained in:
jxxghp
2026-08-22 08:03:00 +08:00
parent c5de1c7b1b
commit 820f7e8850
26 changed files with 1134 additions and 184 deletions
+2
View File
@@ -20,6 +20,7 @@ def _context() -> ChainRuntimeContext:
async_file_cache=Mock(),
message_queue_factory=Mock(return_value=Mock()),
module_dispatcher_factory=ModuleInvocationDispatcher,
durable_event_writer=Mock(),
)
@@ -33,6 +34,7 @@ def test_chain_accepts_explicit_runtime_context() -> None:
assert chain.pluginmanager is context.plugin_manager
assert chain.eventmanager is context.event_manager
assert chain.messagehelper is context.message_helper
assert chain.durable_event_writer is context.durable_event_writer
context.message_queue_factory.assert_called_once_with(chain.run_module)