diff --git a/modules/mesh-delivery/cmd/mesh-delivery/bus_test.go b/modules/mesh-delivery/cmd/mesh-delivery/bus_test.go index 87d37458..a9562208 100644 --- a/modules/mesh-delivery/cmd/mesh-delivery/bus_test.go +++ b/modules/mesh-delivery/cmd/mesh-delivery/bus_test.go @@ -531,8 +531,14 @@ func TestAGroupOfTwoWithGreenChecksGetsOneAskAndOnItsApproveBothMergeInOnePassOv b.publish(t, "mesh.seat."+ControllerSeat+".event.checked", judgedAt("novox/mesh-catalog", 2, catHead, "pass", "t1t1t1t1t1t1")) // Both members green: the composed check is asked, once, for both. + // Each member's own check is asked at once (issue 1115), before the group's: wait for the one carrying the group. rt.until("the composed check to be asked", 10*time.Second, func() bool { - return len(rt.asksOf("seat:"+ControllerSeat+".delivery-check")) >= 1 + for _, c := range rt.asksOf("seat:" + ControllerSeat + ".delivery-check") { + if c.Body["group"] == "feat/x" { + return true + } + } + return false }) if n := len(rt.asksOf("seat:" + ControllerSeat + ".delivery-order")); n != 0 { t.Fatalf("the controller's delivery-order was asked %d times: no order is asked for", n)