summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/DenoWinRunner.cs12
-rw-r--r--cli/tests/echo_server.ts2
-rw-r--r--cli/tests/tls/README.md4
3 files changed, 9 insertions, 9 deletions
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
/// </summary>
/// <param name="pathToDenoExe">Path to the Deno.exe file. Can be absolute or relative</param>
/// <param name="pathToTestScript">Path to the script file Deno should run.</param>
- /// <param name="constraints">The contrainsts to apply to the Deno process</param>
+ /// <param name="constraints">The constraints to apply to the Deno process</param>
/// <param name="timeoutMilliseconds">How long to wait for the Deno process to exit</param>
/// <returns>The deno.exe exit code, or an exit code provided by the test runner</returns>
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<string> stdErrTask = startInfo.RedirectStandardError ?
+ Task<string> stdErrTask = startInfo.RedirectStandardError ?
process.StandardError.ReadToEndAsync() : Task.FromResult<string>(null);
- Task<string> stdOutTask = startInfo.RedirectStandardOutput ?
+ Task<string> stdOutTask = startInfo.RedirectStandardOutput ?
process.StandardOutput.ReadToEndAsync() : Task.FromResult<string>(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<void> => {
- 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`