Answer dead-letters on the lent serving connection, and keep one clip helper
mesh/merge-gate pass: builds build-agent, mesh-controller, route-proxy → ace, g14, novox, shanks; no bus step; every machine composes with the change as it…
mesh/repo-check pass: its merge-check.sh passed
mesh/delivery delivered

Two handles to the same serving connection, and two copies of one helper,
would drift (review of hq issues 327 and 330).
This commit is contained in:
jochen
2026-10-08 21:09:08 +02:00
parent cc7fb99f29
commit 5b7e6ff453
5 changed files with 9 additions and 27 deletions
+3 -3
View File
@@ -26,9 +26,9 @@ func servingDeadLetters(t *testing.T) *broker.JetStream {
if err := js.EnsureControllerBuckets(); err != nil {
t.Fatal(err)
}
before := deadLettersOn.Load()
deadLettersOn.Store(&busHandles{conn: js.Conn(), js: js.Context()})
t.Cleanup(func() { deadLettersOn.Store(before) })
before := servingBus.Load()
servingBus.Store(js)
t.Cleanup(func() { servingBus.Store(before) })
return js
}