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) }