From fe2bed92e68e3c3420556e5a42b52359a6d9e862 Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 23 Nov 2026 15:53:07 +0100 Subject: [PATCH] mesh-delivery-gate: name the acceptance the race test holds (issue 721, 721/AC1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The review of cc1140ba found the new test cited no acceptance; issue 721's note 15 gives it 721/AC1. The test's comment now names it. No code changes. Fixes: issue 721 note 11 Acceptance: 721/AC1 Builds: design 47 H2 §810 --- .../cmd/mesh-delivery-gate/recordpipeline_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/recordpipeline_test.go b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/recordpipeline_test.go index 91ecc4eb9..89d4e6b71 100644 --- a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/recordpipeline_test.go +++ b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/recordpipeline_test.go @@ -122,11 +122,11 @@ func (l *hookedLedger) Apply(instance, operation string, body any) (uint64, erro return seq, err } -// Issue 721 note 11 (design 47 H2 §810): the runtime hands each event and each call to a goroutine of its own, so one can be -// heard once a running's outcome is in the ledger and before the gate's memory holds it. Heard then, it waits until the running -// is applied whole: a pipeline-wanted ends the record with its delivery time and class (applied at once it ended the record -// with neither, the delivery time lost), and the call show answers the record with the running, its answer taken before the -// next event writes the record. +// 721/AC1 (issue 721 note 11; design 47 H2 §810): the runtime hands each event and each call to a goroutine of its own, so +// one can be heard once a running's outcome is in the ledger and before the gate's memory holds it. Heard then, it waits +// until the running is applied whole: a pipeline-wanted ends the record with its delivery time and class (applied at once it +// ended the record with neither, the delivery time lost), and the call show answers the record with the running, its answer +// taken before the next event writes the record. func TestWhatIsHeardWhileAnEventIsWrittenWaitsUntilItIsApplied(t *testing.T) { running := func(node string) stdio.Envelope { return stdio.Envelope{Key: "node-engine.running." + node + ".app", Node: node, Body: json.RawMessage(