On B1: the ledger test names its tool runner by its manifest's tool-runner, and ShelfWaiting takes B1's old-section counts (rebase onto main c4470f42)

This commit is contained in:
2026-11-03 16:46:40 +01:00
parent aacdba44e3
commit 875d42fe3e
2 changed files with 2 additions and 2 deletions
@@ -62,7 +62,7 @@ func TestTheJudge(t *testing.T) {
"bad": []byte(`{"module":"bad","version":"1","provides":[{"name":"amqp"}]}`),
"ok": []byte(`{"module":"ok","version":"1"}`),
}
refused, waits, _ := ShelfWaiting(waitRaws, nil, 0)
refused, waits, _ := ShelfWaiting(waitRaws, nil, 0, nil)
if !reflect.DeepEqual(waits, map[string][]string{"later": {"later-field", "other"}}) || len(refused) != 2 || refused["renamed"] == nil || refused["bad"] == nil {
t.Errorf("ShelfWaiting: waits %v, refused %v", waits, refused)
}
@@ -978,7 +978,7 @@ func aLedgerIsWrittenByItsLedgerAccountAlone(t *testing.T) {
r := Records{Nodes: nodes, Assigned: map[string][]Declared{}}
for _, n := range nodes {
r.Assigned[n] = []Declared{
{Module: RuntimeModule},
{Module: "node-tools", ToolRunner: true},
{Module: "m", Ledgers: []string{"records", "audit"}, Processes: []ProcessPrincipal{{Process: "w"}}},
{Module: "plain"},
}