test: add trait seams to the agent restore flow (no behaviour change)

RestoreTarget, RestoreHub and BackupSource let the destructive restore
sequence be driven by fakes. poll takes the heartbeat interval as a
parameter instead of reading the constant.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 20:55:13 +07:00
parent d356c313ce
commit b2d5e4d71a
4 changed files with 140 additions and 57 deletions

View File

@@ -13,6 +13,7 @@ path = "src/main.rs"
tessera-core = { path = "../tessera-core" }
tessera-providers = { path = "../tessera-providers" }
anyhow.workspace = true
async-trait.workspace = true
clap.workspace = true
serde.workspace = true
serde_json.workspace = true