H2b-review-8 hub-rows-name-n1: the hub rows name the node n1, no real node
Builds: design 47 H2b §836 (review round 1, part 1, item 8)
This commit is contained in:
@@ -166,7 +166,7 @@ func subAModuleHearsASeatEventKeptOnItsOwnStream(t *testing.T) {
|
||||
case <-ctx.Done():
|
||||
t.Fatal("the hub's start bound the kept stream and said nothing")
|
||||
}
|
||||
if _, err := js.Publish(ctx, "mesh.seat.node-engine.event.running.ace.mesh-tools", []byte("fp5")); err != nil {
|
||||
if _, err := js.Publish(ctx, "mesh.seat.node-engine.event.running.n1.mesh-tools", []byte("fp5")); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
for heard := ""; heard != "fp5"; {
|
||||
|
||||
@@ -483,7 +483,7 @@ func (b *fakeHubBus) reconnected(f func()) { b.reconn = f }
|
||||
// reconnect when its bind was refused, OnAllHeard told once each time the patterns are all heard, a bound stream never bound again.
|
||||
func subTheHubStartBindsEveryPatternAndSaysWhenAllAreHeard(t *testing.T) {
|
||||
kept := "SEAT_node-engine_running"
|
||||
cred := Account{Node: "ace", Module: "teller"}
|
||||
cred := Account{Node: "n1", Module: "teller"}
|
||||
var unheardTold [][]Unheard // what OnUnheard was told, in order (1984/AC-836e)
|
||||
newHub := func(bus *fakeHubBus) (h *EventHub, allHeard *int, created *[]time.Time) {
|
||||
h, allHeard, created = NewEventHub(t.Logf), new(int), new([]time.Time)
|
||||
@@ -515,7 +515,7 @@ func subTheHubStartBindsEveryPatternAndSaysWhenAllAreHeard(t *testing.T) {
|
||||
if *allHeard != 1 || len(bus.binds) != 2 || len(*created) != 2 {
|
||||
t.Errorf("all heard %d times, binds %v, bound told %d times", *allHeard, bus.binds, len(*created))
|
||||
}
|
||||
if bus.wakeAt != "mesh.seat.mesh-grants.event.durables-composed.ace.teller" {
|
||||
if bus.wakeAt != "mesh.seat.mesh-grants.event.durables-composed.n1.teller" {
|
||||
t.Errorf("the wake is on %q", bus.wakeAt)
|
||||
}
|
||||
bus.onWake()
|
||||
|
||||
Reference in New Issue
Block a user