Skip to content

Commit 65b3e76

Browse files
authored
nit: Fix ProcessEx timeout error message (#33057)
1 parent e4f7bfb commit 65b3e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/Process/ProcessEx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public ProcessEx(ITestOutputHelper output, Process proc, TimeSpan timeout)
5252
// We greedily create a timeout exception message even though a timeout is unlikely to happen for two reasons:
5353
// 1. To make it less likely for Process getters to throw exceptions like "System.InvalidOperationException: Process has exited, ..."
5454
// 2. To ensure if/when exceptions are thrown from Process getters, these exceptions can easily be observed.
55-
var timeoutExMessage = $"Process proc {proc.ProcessName} {proc.StartInfo.Arguments} timed out after {DefaultProcessTimeout}.";
55+
var timeoutExMessage = $"Process proc {proc.ProcessName} {proc.StartInfo.Arguments} timed out after {timeout}.";
5656

5757
_processTimeoutCts = new CancellationTokenSource(timeout);
5858
_processTimeoutCts.Token.Register(() =>

0 commit comments

Comments
 (0)