From 4e33533bd04abb052c81c783d63bcb1009fddde4 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 17 Nov 2026 13:04:19 +0100 Subject: [PATCH] assigner: a case holding that an end names its run's ask, so a replaced run's late end ends nothing (A-470n) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Builds: design 47 G ยง719; A-470n. --- .../cmd/mesh-delivery-assigner/compositionruns_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/compositionruns_test.go b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/compositionruns_test.go index 6c7d2a28..8d670254 100644 --- a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/compositionruns_test.go +++ b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/compositionruns_test.go @@ -503,6 +503,11 @@ func TestACompositionRunsBoundTimesOwedProgress(t *testing.T) { kv.expire(runUntakenPrefix + key) r.expired(runUntakenPrefix + key) }, false, "run-1", "", "the expiry of " + runUntakenPrefix + key + " ends nothing"}, + {"an end of another ask", func(t *testing.T, kv *runsMem, r *compositionRuns) { + if ended, err := r.end(key, "run-0", meshwants.CompositionRunOutcomePassed, "", nil); ended || err != nil { + t.Errorf("the end of run-0 ended the run of run-1: %v %v", ended, err) + } + }, false, "", "run-1", ""}, {"the ask-taken of the run's own ask", func(t *testing.T, kv *runsMem, r *compositionRuns) { taken(t, r) }, false, "run-1", "", ""},