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 ++++++------ cli/tests/echo_server.ts | 2 +- cli/tests/tls/README.md | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'cli/tests') 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 +} diff --git a/cli/tests/echo_server.ts b/cli/tests/echo_server.ts index fc8afa981..fcb157fdb 100644 --- a/cli/tests/echo_server.ts +++ b/cli/tests/echo_server.ts @@ -4,7 +4,7 @@ const listener = Deno.listen({ hostname, port: Number(port) }); console.log("listening on", addr); listener.accept().then( async (conn): Promise => { - console.log("recieved bytes:", await Deno.copy(conn, conn)); + console.log("received bytes:", await Deno.copy(conn, conn)); conn.close(); listener.close(); }, diff --git a/cli/tests/tls/README.md b/cli/tests/tls/README.md index 34de47dea..19bbaec35 100644 --- a/cli/tests/tls/README.md +++ b/cli/tests/tls/README.md @@ -43,5 +43,5 @@ For testing purposes we need following files: - `RootCA.crt` - `RootCA.key` - `RootCA.pem` -- `locahost.crt` -- `locahost.key` +- `localhost.crt` +- `localhost.key` -- cgit v1.2.3