feat(t216): deliver recoverable device order commands

This commit is contained in:
QiuSW
2026-07-28 13:23:18 +08:00
parent 75fdc63db2
commit 2372ab2280
32 changed files with 2415 additions and 65 deletions
@@ -27,8 +27,8 @@ func TestRunnerSupportsUpStatusDownAndIdempotentUp(t *testing.T) {
if err != nil {
t.Fatalf("Up() error = %v", err)
}
if applied != 8 {
t.Fatalf("Up() applied = %d, want 8", applied)
if applied != 9 {
t.Fatalf("Up() applied = %d, want 9", applied)
}
assertStatuses(t, runner, map[int64]bool{
1: true,
@@ -39,6 +39,7 @@ func TestRunnerSupportsUpStatusDownAndIdempotentUp(t *testing.T) {
6: true,
7: true,
8: true,
9: true,
})
applied, err = runner.Up(context.Background())
@@ -60,7 +61,8 @@ func TestRunnerSupportsUpStatusDownAndIdempotentUp(t *testing.T) {
5: true,
6: true,
7: true,
8: false,
8: true,
9: false,
})
applied, err = runner.Up(context.Background())
@@ -79,6 +81,7 @@ func TestRunnerSupportsUpStatusDownAndIdempotentUp(t *testing.T) {
6: true,
7: true,
8: true,
9: true,
})
}