console: tidy the old-console test's fixtures
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 file changed,
+1
−3
internal/console/offlinereserve_test.go+1 −3
CI cancelled — superseded by a newer push — run details
CI log
=== gate === .amadan/test-gate.sh amadan: job cancelled — a newer push superseded it
diff --git a/internal/console/offlinereserve_test.go b/internal/console/offlinereserve_test.go| index d77cfe9b7..35f06105e 100644 |
| --- a/internal/console/offlinereserve_test.go |
| +++ b/internal/console/offlinereserve_test.go |
| @@ -842,7 +842,6 @@ func TestOldConsoleAlgorithmsAgainstTheNewBody(t *testing.T) { |
| w.fx.srv.cfg.SelfServeMoves = "offline" |
| w.wantReserve(selOf("ie-1", "uk-1"), mres(mvA, offlineHost, 0), nil) |
| w.wantReserve(selOf("ie-2", "uk-2"), mres(mvB, betaHost, 0), nil) |
| - before := w.activeRaw() |
| // An old console's start reads the projection as a young lock. |
| if got := oldTakeLock(ctx, w.fx.srv, "gamma.shop.example.com", mvC, "bab", "shop"); !sameRefusal(got, refBusyAcme) { |
| t.Fatalf("an old start against a young table = %+v", got) |
| @@ -850,7 +849,7 @@ func TestOldConsoleAlgorithmsAgainstTheNewBody(t *testing.T) { |
| // Old, it checks the projection's record: a live move is still busy. |
| w.queueOn(offlineHost, mvA) |
| w.backdate() |
| - before = w.activeRaw() |
| + before := w.activeRaw() |
| if got := oldTakeLock(ctx, w.fx.srv, "gamma.shop.example.com", mvC, "bab", "shop"); !sameRefusal(got, refBusyAcme) { |
| t.Fatalf("an old start against an old table with a live move = %+v", got) |
| } |
| @@ -861,7 +860,6 @@ func TestOldConsoleAlgorithmsAgainstTheNewBody(t *testing.T) { |
| } |
| // A new console still reads what an old one writes: a legacy lock is |
| // the sentinel. |
| - offlinePut(t, w.fx.rel, moves.OfflineActiveKey, nil) |
| if err := w.fx.rel.Delete(ctx, moves.OfflineActiveKey); err != nil { |
| t.Fatal(err) |
| } |