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:
+3
-1
@@ -54,7 +54,9 @@ public sealed class NativeLeaseReleaseSoakTests
|
|||||||
UseConnectedMessaging: true);
|
UseConnectedMessaging: true);
|
||||||
|
|
||||||
using var budget = CancellationTokenSource.CreateLinkedTokenSource(TestContext.Current.CancellationToken);
|
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++)
|
for (var i = 0; i < cycles; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user