tests: arm the successor validator on its own registry
installScanSuccessorValidator armed a production departure controller
on the scan rig's registry. Its work loop steps as soon as the journal
is ready, using the real clock, so whenever it reached ScanPass before
the fixture's Stop it reserved the rig's departure until wall time plus
30 s. The rig's next pass, at its fixed earlier clock, then found
nothing due.
That is the hosted CI flake in TestDeparturePoolCoverage
("hadepartures_scan_test.go:493: 0 0", receiver-b ScanPass worked=false)
and in TestHADepartureProductionWiring/two_fixed_receivers ("shared
receiver did not import its subset 0"). A 300 ms sleep before Stop
reproduces both every time; with this change both pass under the same
sleep.
The validator only reads the identities the fixture records after Stop,
so the armed controller keeps the fixture's own registry. Test-only;
product code is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+6
−1
internal/host/hadepartures_fix_test.go+6 −1
CI passed — run details
diff --git a/internal/host/hadepartures_fix_test.go b/internal/host/hadepartures_fix_test.go| index c4dcea69b..0d439cc01 100644 |
| --- a/internal/host/hadepartures_fix_test.go |
| +++ b/internal/host/hadepartures_fix_test.go |
| @@ -401,7 +401,12 @@ func installScanSuccessorValidator(t *testing.T, x *scanRig, boxes ...hadepartur |
| t.Helper() |
| a, _, _ := departureArmFixtureBucket(t, x.d.Box.Scope.DataBucket) |
| signer := boxidtest.NewSigner(t) |
| - a.Registry = x.r |
| + // The armed controller keeps the fixture's own registry. Its work loop |
| + // steps as soon as the journal is ready, with the real clock; on the |
| + // rig's registry that step reserved the rig's departure until wall time |
| + // plus 30 s, so the rig's next pass at its fixed clock found nothing due |
| + // (CI flake "0 0" in TestDeparturePoolCoverage). The validator only reads |
| + // identities the loop below records, so it needs no shared journal. |
| a.Self = x.c.cfg.Self |
| a.Verifier = boxid.Verifier{Account: x.d.Box.Account, Certs: signer.Certs()} |
| a.OpenStore = x.c.cfg.OpenStore |