lease: drop the WAL-wait change, it lands on its own branch
Reverts 802f9264. Agent manager 8a3d302 wants the 30 s WAL-release deadline on main through its own small branch, not on this one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+1
−2
internal/lease/release_snapshot_test.go+1 −2
diff --git a/internal/lease/release_snapshot_test.go b/internal/lease/release_snapshot_test.go| index 7c361e943..a0228bc3c 100644 |
| --- a/internal/lease/release_snapshot_test.go |
| +++ b/internal/lease/release_snapshot_test.go |
| @@ -253,8 +253,7 @@ func TestDrainReleaseSnapshotEarlyRefusalReleasesTheWAL(t *testing.T) { |
| } |
| return false |
| } |
| - // 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) { |
| + for deadline := time.Now().Add(2 * 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) |
| } |