Skip to content

Commit

Permalink
change requests
Browse files Browse the repository at this point in the history
  • Loading branch information
kllysng committed Jan 7, 2025
1 parent d82fdea commit 9dbcc4c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/E2E Tests/WebAppUiTests/UiTestHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ public static Process StartProcessLocally(
Process? process;
do
{
Thread.Sleep(1000 * currentAttempt++); // Exponential backoff
process = Process.Start(processStartInfo);
} while (currentAttempt++ <= maxRetries && ProcessIsAlive(process));

Expand All @@ -179,6 +180,13 @@ public static Process StartProcessLocally(
}
else
{
// Log the output and error streams
process.OutputDataReceived += (sender, e) => Console.WriteLine(e.Data);
process.ErrorDataReceived += (sender, e) => Console.Error.WriteLine(e.Data);

process.BeginOutputReadLine();
process.BeginErrorReadLine();

return process;
}
}
Expand Down

0 comments on commit 9dbcc4c

Please sign in to comment.