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

1
Cargo.lock generated
View File

@@ -3083,6 +3083,7 @@ name = "tessera-agent"
version = "0.1.0"
dependencies = [
"anyhow",
"async-trait",
"base64 0.22.1",
"clap",
"hex",