Assert the controller's buckets in the builder-on-the-bus fixture (issue 1945)

A merge the controller hears is now kept in the bucket of the merges (ADR 0539 §17); the test that sends one passed
only when an earlier test on the shared bus had made that bucket.
This commit is contained in:
2026-10-24 22:23:11 +02:00
parent fad3d7ee71
commit 183d7a99ff
@@ -47,6 +47,11 @@ func aBuilderOnTheBus(t *testing.T) builderOnTheBus {
}
*c.into = kv
}
// And the controller's own buckets, as its start asserts them: a merge it hears is kept in the bucket of the merges
// (ADR 0539 §17), which no other test need have made on this bus first.
if err := js.EnsureControllerBuckets(); err != nil {
t.Fatal(err)
}
servingBus.Store(js)
t.Cleanup(func() { servingBus.Store(nil) })
withTrunkList(t, true)