From d951aa954e23531ea66c11dfe4a4d536139caa9b Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 24 Oct 2026 03:25:05 +0200 Subject: [PATCH] Assert a Retry waits for the builder's key, since the controller asks no build now (issue 1931) --- cmd/mesh-controller/asker_retry_integration_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmd/mesh-controller/asker_retry_integration_test.go b/cmd/mesh-controller/asker_retry_integration_test.go index 5e323b58..2ea3177f 100644 --- a/cmd/mesh-controller/asker_retry_integration_test.go +++ b/cmd/mesh-controller/asker_retry_integration_test.go @@ -23,7 +23,7 @@ import ( func TestAWarrantForRetryRetriesAFailedPlanInTheStoreAndEndsItsCondition(t *testing.T) { open := aMesh(t) ctx := t.Context() - asked := asksRecorded(t) + asksRecorded(t) planMovedHeard(t) // the bus the verb says its moves on, and the hand-act log twoTiers(t, open) before := time.Now().UTC().Add(-time.Hour) @@ -123,12 +123,9 @@ func TestAWarrantForRetryRetriesAFailedPlanInTheStoreAndEndsItsCondition(t *test t.Fatal(err) } m := p.Modules["a"] - if p.State != inventory.PlanBuilding || p.Tier != 0 || m.State != "asked" || m.Build == "" || m.Build == "build-1" { + if p.State != inventory.PlanBuilding || p.Tier != 0 || m.State != "asked" || !m.Key || m.Why != "waits for the builder's key" || m.Build == "build-1" { t.Fatalf("after the warrant the plan is %s at tier %d and a is %+v", p.State, p.Tier, m) } - if len(*asked) != 1 { - t.Fatalf("the build was asked %d times: %v", len(*asked), *asked) - } if got := store[w.Ask]; got.Acted != "done" { t.Fatalf("the ask ended %q", got.Acted) }