Seed the seats before the late holder claims a build seat (issue 1931)

This commit is contained in:
2026-10-24 04:55:12 +02:00
parent bb2073b6bb
commit e57224c25a
+4
View File
@@ -51,6 +51,10 @@ func aCarriedConsumer(t *testing.T, open *stores) broker.Consumer {
// seat's first accepted kind (the build agent's seat, which had one worker for all, is gone with the builder).
func aLateHolder(t *testing.T, open *stores) broker.Consumer {
t.Helper()
// The seat's rows are what a claim of it is composed against (a pulled-by-kind seat's workers come from them).
if _, err := open.inventory.SeedSeats(t.Context(), catalogue.DefaultSeats()); err != nil {
t.Fatal(err)
}
register(t, open, catalogue.Manifest{Module: "late-builder", Version: "1",
Claims: []catalogue.Claim{{Name: "node-build-go", Scope: catalogue.ScopeNode}}})
if _, err := open.inventory.Assign(t.Context(), "anchor", "late-builder"); err != nil {