End the reconnects test's verb in the serving process: a command verb re-runs the test binary (issue 1931)

This commit is contained in:
2026-10-24 03:41:40 +02:00
parent d951aa954e
commit a9de578cb9
@@ -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)