test(abcip): scale the lease-soak budget with AB_LEASE_SOAK_CYCLES (#593)

200 cycles against ab_server pass (3m19s); a fixed 120s budget timed out above ~100 cycles.

Claude-Session: https://claude.ai/code/session_01Ef2ozxS7QPanGT8uoATbTe
This commit is contained in:
Joseph Doherty
2026-10-08 07:10:55 -04:00
parent e9e35baa70
commit cb838d4ae1
@@ -54,7 +54,9 @@ public sealed class NativeLeaseReleaseSoakTests
UseConnectedMessaging: true);
using var budget = CancellationTokenSource.CreateLinkedTokenSource(TestContext.Current.CancellationToken);
budget.CancelAfter(TimeSpan.FromSeconds(120));
// ~1 s per cycle against ab_server (close + re-open + read), so the budget scales with the
// cycle count; a fixed budget made AB_LEASE_SOAK_CYCLES above ~100 time out, not fail.
budget.CancelAfter(TimeSpan.FromSeconds(60 + 3 * cycles));
for (var i = 0; i < cycles; i++)
{