Keep chapter polling expiry check aligned with bounded idle pickup
This commit is contained in:
parent
1601908795
commit
d46ed11600
@ -74,7 +74,7 @@ internal static class WordReopeningWorkTests
|
||||
Console.WriteLine($"PORTABLE real pipe handoff (Linux sockets): {watch.Elapsed.TotalMilliseconds:F1}ms, {polls} polls; not Windows IPC/Word performance.");
|
||||
link.TryPost(new(){Kind="chapter-end",SessionId=session,Revision=1,SnapshotId=Guid.NewGuid()});
|
||||
while(expired==0)await Task.Delay(5,stop.Token);var stoppedAt=polls;await Task.Delay(250,stop.Token);
|
||||
Check(stoppedAt>0&&polls==stoppedAt,"Fast command polling expires after a bounded window instead of running permanently");
|
||||
Check(stoppedAt>0&&polls-stoppedAt<=3,"Fast chapter polling expires and returns to bounded 100ms idle pickup");
|
||||
link.Dispose();await link.Completion.WaitAsync(TimeSpan.FromSeconds(5));stop.Cancel();try{await host;}catch(Exception e)when(e is OperationCanceledException or IOException or ObjectDisposedException){}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user