summaryrefslogtreecommitdiff
path: root/std/http/server_test.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-06-09 12:18:18 +0100
committerGitHub <noreply@github.com>2020-06-09 13:18:18 +0200
commitb3e189ee4f97a9d6c5b7a2164d644aa4c7fa4b79 (patch)
tree31b8f4f39e730ed017889671f87dd19ad714caac /std/http/server_test.ts
parent54742d29dce4230c36db28fb2306589b8e57d3d9 (diff)
fix(cli/js/process): Strengthen socket types based on pipes (#4836)
Diffstat (limited to 'std/http/server_test.ts')
-rw-r--r--std/http/server_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/std/http/server_test.ts b/std/http/server_test.ts
index d522b9a8f..2d911c450 100644
--- a/std/http/server_test.ts
+++ b/std/http/server_test.ts
@@ -372,7 +372,7 @@ test({
.catch((_): void => {}); // Ignores the error when closing the process.
try {
- const r = new TextProtoReader(new BufReader(p.stdout!));
+ const r = new TextProtoReader(new BufReader(p.stdout));
const s = await r.readLine();
assert(s !== null && s.includes("server listening"));
await delay(100);
@@ -387,7 +387,7 @@ test({
// Stops the sever and allows `p.status()` promise to resolve
Deno.kill(p.pid, Deno.Signal.SIGKILL);
await statusPromise;
- p.stdout!.close();
+ p.stdout.close();
p.close();
}
},
@@ -417,7 +417,7 @@ test({
.catch((_): void => {}); // Ignores the error when closing the process.
try {
- const r = new TextProtoReader(new BufReader(p.stdout!));
+ const r = new TextProtoReader(new BufReader(p.stdout));
const s = await r.readLine();
assert(
s !== null && s.includes("server listening"),
@@ -444,7 +444,7 @@ test({
// Stops the sever and allows `p.status()` promise to resolve
Deno.kill(p.pid, Deno.Signal.SIGKILL);
await statusPromise;
- p.stdout!.close();
+ p.stdout.close();
p.close();
}
},