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:
@@ -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"},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user