From 1f25ceded186079dace4f198263eb041638a277c Mon Sep 17 00:00:00 2001 From: Nicholas Blumhardt Date: Fri, 27 Mar 2026 10:01:39 +1000 Subject: [PATCH] Give test processes more time to exit cleanly --- test/SeqCli.EndToEnd/Support/CaptiveProcess.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/SeqCli.EndToEnd/Support/CaptiveProcess.cs b/test/SeqCli.EndToEnd/Support/CaptiveProcess.cs index fb11e841..c9b6ed1d 100644 --- a/test/SeqCli.EndToEnd/Support/CaptiveProcess.cs +++ b/test/SeqCli.EndToEnd/Support/CaptiveProcess.cs @@ -111,11 +111,12 @@ public int WaitForExit(TimeSpan? timeout = null) if (_captureOutput) { - if (!_outputComplete.WaitOne(TimeSpan.FromSeconds(5))) - throw new IOException("STDOUT did not complete in the fixed 5-second window."); + const int secondsWait = 15; + if (!_outputComplete.WaitOne(TimeSpan.FromSeconds(secondsWait))) + throw new IOException($"STDOUT did not complete in the fixed {secondsWait}-second window."); - if (!_errorComplete.WaitOne(TimeSpan.FromSeconds(5))) - throw new IOException("STDERR did not complete in the fixed 5-second window."); + if (!_errorComplete.WaitOne(TimeSpan.FromSeconds(secondsWait))) + throw new IOException($"STDERR did not complete in the fixed {secondsWait}-second window."); } return _process.ExitCode;