From 69544672926421d681886a2f813ea52345d77937 Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 18 Oct 2026 12:33:02 +0200 Subject: [PATCH] mesh-delivery bus test waits for the group's composed check, not a member's own check asked at once (issue 1115) --- modules/mesh-delivery/cmd/mesh-delivery/bus_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)