Skip to content

Commit b6518b4

Browse files
committed
Bind complete Drop flows to the TUnit test lifetime
The shared Drop flow applied a single 130-second restart-completion window to seeding, execution and two cold reopens. A healthy Debug run exceeded that window, so the second restart received an already-cancelled token. Pass the existing TUnit lifetime token through the complete operation. Retain the existing per-host startup/shutdown cancellation bounds, joined cleanup, exact original receipts, healthy follow-up and both cold reopens. Explicit caller cancellation and committed-reply failure checks remain unchanged. Validation: all three focused Drop flows passed without skips; the original lifecycle completed in 152 seconds. Full strict Debug solution build, format verification, governance, four compiled-inventory controls and canonical 3290-case census plus all five selectors passed. Full exact-source local and Linux qualification remain pending.
1 parent 62abf19 commit b6518b4

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎tests/KeyLoad.FunctionalTests/ResourceExecution/Scenarios/Tables/RuntimeDrop/DropOperationFlow.cs‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ internal static async Task RunAsync(Func<DropRuntimeProfile, CancellationToken,
1313
await ServerFailureObserver.ObserveAsync(async () =>
1414
{
1515
profile = await DropRuntimeProfile.CreateAsync(token, limits).ConfigureAwait(false);
16-
using var deadline = new CancellationTokenSource(profile.Node.Timing.RestartCompletionTimeout, TimeProvider.System);
17-
using var lifetime = CancellationTokenSource.CreateLinkedTokenSource(token, deadline.Token);
18-
await DropRuntimeSeed.CreateAsync(profile, lifetime.Token).ConfigureAwait(false);
19-
await DropRuntimeSeed.CreateAsync(profile, lifetime.Token, DropRuntimeProtocol.OtherTable).ConfigureAwait(false);
20-
await operation(profile, lifetime.Token).ConfigureAwait(false);
16+
await DropRuntimeSeed.CreateAsync(profile, token).ConfigureAwait(false);
17+
await DropRuntimeSeed.CreateAsync(profile, token, DropRuntimeProtocol.OtherTable).ConfigureAwait(false);
18+
await operation(profile, token).ConfigureAwait(false);
2119
}, failures).ConfigureAwait(false);
2220
if (profile is not null)
2321
{

0 commit comments

Comments
 (0)