Assert notes among the assigned modules, which an assignment may bring others to
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user