diff --git a/PlotDirector.NativeCompanion/Tests/WordReopeningWorkTests.cs b/PlotDirector.NativeCompanion/Tests/WordReopeningWorkTests.cs index 9f4de01b..cb40407d 100644 --- a/PlotDirector.NativeCompanion/Tests/WordReopeningWorkTests.cs +++ b/PlotDirector.NativeCompanion/Tests/WordReopeningWorkTests.cs @@ -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){} } }