From b8bc24d167f2e19482d9dc6d367876c361abf4ea Mon Sep 17 00:00:00 2001 From: Anh Hong Date: Fri, 11 Dec 2020 02:45:45 +0700 Subject: chore: fixed various misspellings and other typos (#8691) --- cli/tests/DenoWinRunner.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cli/tests/DenoWinRunner.cs') diff --git a/cli/tests/DenoWinRunner.cs b/cli/tests/DenoWinRunner.cs index 7879d146d..2f9e9f89f 100644 --- a/cli/tests/DenoWinRunner.cs +++ b/cli/tests/DenoWinRunner.cs @@ -31,7 +31,7 @@ public class DenoWinRunner /// /// Path to the Deno.exe file. Can be absolute or relative /// Path to the script file Deno should run. - /// The contrainsts to apply to the Deno process + /// The constraints to apply to the Deno process /// How long to wait for the Deno process to exit /// The deno.exe exit code, or an exit code provided by the test runner public static int RunDenoScript(string pathToDenoExe, string pathToTestScript, DenoConstraints constraints, uint timeoutMilliseconds = 1000) @@ -66,7 +66,7 @@ public class DenoWinRunner { SetStdHandle(STD_INPUT_HANDLE, (IntPtr)null); } - + if (constraints.HasFlag(DenoConstraints.NoStdout)) { SetStdHandle(STD_OUTPUT_HANDLE, (IntPtr)null); @@ -76,13 +76,13 @@ public class DenoWinRunner { SetStdHandle(STD_ERROR_HANDLE, (IntPtr)null); } - + Process process = new Process { StartInfo = startInfo }; process.Start(); - Task stdErrTask = startInfo.RedirectStandardError ? + Task stdErrTask = startInfo.RedirectStandardError ? process.StandardError.ReadToEndAsync() : Task.FromResult(null); - Task stdOutTask = startInfo.RedirectStandardOutput ? + Task stdOutTask = startInfo.RedirectStandardOutput ? process.StandardOutput.ReadToEndAsync() : Task.FromResult(null); if (!process.WaitForExit((int)timeoutMilliseconds)) @@ -124,4 +124,4 @@ public class DenoWinRunner return -1; } } -} \ No newline at end of file +} -- cgit v1.2.3