From a9de578cb9604d6dd6bcf0883bb2726b668e3bf6 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 24 Oct 2026 03:41:40 +0200 Subject: [PATCH] End the reconnects test's verb in the serving process: a command verb re-runs the test binary (issue 1931) --- cmd/mesh-controller/reconnects_integration_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/mesh-controller/reconnects_integration_test.go b/cmd/mesh-controller/reconnects_integration_test.go index 65c13bf3..672a9c13 100644 --- a/cmd/mesh-controller/reconnects_integration_test.go +++ b/cmd/mesh-controller/reconnects_integration_test.go @@ -52,8 +52,9 @@ func TestTheServingControllerLendsItsOwnConnection(t *testing.T) { if a := answer.(verbAnswer); !a.OK || a.Answer == nil { t.Fatalf("hand-acts answered %+v", a) } - // A read-only verb that dials the bus and the store: inside the serving controller it borrows. - _, _ = handlers["conditions"](context.Background(), json.RawMessage(`{}`)) + // A read-only verb that runs in the serving process, as a verb that reads the bus does: it uses the + // serving connection and opens none. (A verb run as a command re-executes this test binary, which never ends.) + _, _ = handlers["dead-letters"](context.Background(), json.RawMessage(`{}`)) after, _ := bus.Varz(nil) if opened := after.TotalConnections - before.TotalConnections; opened != 0 { t.Fatalf("the serving controller opened %d connection(s) of its own", opened)