Indexer: the tests follow the seat mesh-module-assigner and the seat list reader's bus (issue 1966)
Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i
This commit is contained in:
@@ -5150,8 +5150,8 @@ func TestUsingASeatNobodyDeclaresIsRefused(t *testing.T) {
|
||||
catalogue.Manifest{Module: "shop", Invokes: []string{"seat:telegram-sender.status"}}, unclaimed, true},
|
||||
{"a verb of a mesh seat whose holder lives in another repository", "",
|
||||
catalogue.Manifest{Module: "shop", Invokes: []string{"seat:mesh-watchdogs.signals"}}, telegram(), false},
|
||||
{"a verb a mesh seat does not promise", `the seat mesh-placement serves no verb "adopt"`,
|
||||
catalogue.Manifest{Module: "shop", Invokes: []string{"seat:mesh-placement.adopt"}}, telegram(), false},
|
||||
{"a verb a mesh seat does not promise", `the seat mesh-module-assigner serves no verb "adopt"`,
|
||||
catalogue.Manifest{Module: "shop", Invokes: []string{"seat:mesh-module-assigner.adopt"}}, telegram(), false},
|
||||
{"the controller's seat is gone (ADR 0590)", `a verb of the seat "mesh-controller", ` + catalogue.UndeclaredSeat,
|
||||
catalogue.Manifest{Module: "shop", Invokes: []string{"seat:mesh-controller.root-free"}}, telegram(), true},
|
||||
{"the engine's verb: every node's engine holds its seat", "",
|
||||
|
||||
@@ -300,6 +300,11 @@ func TestServesNoRequestSubjectAndHoldsNoTicker(t *testing.T) { // 1238/AC9 (ADR
|
||||
return err
|
||||
}
|
||||
for _, f := range forbidden {
|
||||
// The seat list reader's Bus interface names a method Subscribe; the indexer's own bus hands it its own events
|
||||
// directly and subscribes to nothing on the bus.
|
||||
if f == "Subscribe(" && strings.HasSuffix(path, "seatlist.go") {
|
||||
continue
|
||||
}
|
||||
if strings.Contains(string(src), f) {
|
||||
t.Errorf("%s holds %s: the indexer serves no request subject and holds no timer", path, f)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user