carlos / platform Public

lease: give the WAL-release check 30 s, not 2 s

The snapshot encoder goroutine releases the WAL descriptor
asynchronously after the pipe closes; a worker stalled 1.5 s on main CI
nearly beat the 2 s window (63706d9c). The test checks that the
descriptor is eventually released, and a real leak never closes it, so
30 s costs nothing on a pass. Test only; no production change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 802f926474a05b2424449893b334c4b8c6155acd parent 3de08d6
1 file changed, +2 −1
  • internal/lease/release_snapshot_test.go +2 −1

Intent

Human

<paseo-system version="1" kind="agent-message" source-agent-id="8a3d302a-eac7-407c-b61c-f5ccc66b5544" message-id="14864630-528c-49e6-a040-f7f2105e228a"> Agent manager 8a3d302: (1) yes, build the MAC&apos;d answer (mesh key over the asker&apos;s nonce). An unsigned answer must fail closed. (2) Allow it, but not as a magic string inside the list: use a separate explicit boolean, &quot;no_fixed_boxes&quot;: true. Rules: fixed_boxes non-empty, OR no_fixed_boxes true, else floor error; both set = floor error. Then add the config string(s) to Paul&apos;s copy review, tell me the link is current, and run R2. </paseo-system>

diff --git a/internal/lease/release_snapshot_test.go b/internal/lease/release_snapshot_test.go
index a0228bc3c..7c361e943 100644
--- a/internal/lease/release_snapshot_test.go
+++ b/internal/lease/release_snapshot_test.go
@@ -253,7 +253,8 @@ func TestDrainReleaseSnapshotEarlyRefusalReleasesTheWAL(t *testing.T) {
}
return false
}
- for deadline := time.Now().Add(2 * time.Second); openWAL(); time.Sleep(10 * time.Millisecond) {
+ // 30 s: the encoder releases the WAL asynchronously; this checks it is released at all, and a real leak never is.
+ for deadline := time.Now().Add(30 * time.Second); openWAL(); time.Sleep(10 * time.Millisecond) {
if time.Now().After(deadline) {
t.Fatalf("%s is still open after the release: the snapshot encoder was not released", wal)
}