From 38523c650936fa2145c963cb076f753b880b8829 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 24 Oct 2026 19:10:32 +0200 Subject: [PATCH] Assert notes among the assigned modules, which an assignment may bring others to --- cmd/mesh-controller/plans_gone_store_integration_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/mesh-controller/plans_gone_store_integration_test.go b/cmd/mesh-controller/plans_gone_store_integration_test.go index fbd7dbec..2e5e71d3 100644 --- a/cmd/mesh-controller/plans_gone_store_integration_test.go +++ b/cmd/mesh-controller/plans_gone_store_integration_test.go @@ -3,6 +3,7 @@ package main import ( + "slices" "testing" "git.novox.be/novox/mesh-sdk/go/catalogue" @@ -18,8 +19,8 @@ func TestTheControllerOpensOnTheStoreAfterReleaseSix(t *testing.T) { if _, err := assign(ctx, open, "anchor", "notes"); err != nil { t.Fatalf("assign on the migrated store: %v", err) } - if on, err := inv.Assigned(ctx, "anchor"); err != nil || len(on) != 1 || on[0] != "notes" { - t.Fatalf("assigned %v: %v", on, err) + if on, err := inv.Assigned(ctx, "anchor"); err != nil || !slices.Contains(on, "notes") { + t.Fatalf("assigned %v, want notes among them (an assignment may bring the modules it needs): %v", on, err) } if nodes, err := inv.Nodes(ctx); err != nil || len(nodes) == 0 { t.Fatalf("nodes %v: %v", nodes, err)