Skip to content

Commit

Permalink
apply suggestions!
Browse files Browse the repository at this point in the history
  • Loading branch information
kllysng committed Jan 7, 2025
1 parent 7abd42c commit 8371b37
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/E2E Tests/WebAppUiTests/UiTestHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,17 @@ public static Process StartProcessLocally(
else
{
// Log the output and error streams
process.OutputDataReceived += (sender, e) => output.WriteLine(e?.Data ?? "null output data received.");
process.ErrorDataReceived += (sender, e) => output.WriteLine(e?.Data ?? "null error data received.");
process.OutputDataReceived += (sender, e) =>
{
output.WriteLine($"{process.Id} ");
output.WriteLine(e?.Data ?? "null output data received.");
};

process.ErrorDataReceived += (sender, e) =>
{
output.WriteLine($"{process.Id} ");
output.WriteLine(e?.Data ?? "null error data received.");
};

process.BeginOutputReadLine();
process.BeginErrorReadLine();
Expand Down

0 comments on commit 8371b37

Please sign in to comment.