summaryrefslogtreecommitdiff
path: root/std/http/io_test.ts
diff options
context:
space:
mode:
authorOliver Lenehan <sunsetkookaburra+github@outlook.com.au>2020-03-14 12:40:13 +1100
committerGitHub <noreply@github.com>2020-03-13 21:40:13 -0400
commit0f6acf275370cae09ffb3f6950a3926424f3b024 (patch)
treee77a2115394f36dcbd899fd8f2d5496ca7bde625 /std/http/io_test.ts
parentaab1acaed163f91aa5e89b079c5312336abb2088 (diff)
fix(std): Use Deno.errors where possible. (#4356)
Diffstat (limited to 'std/http/io_test.ts')
-rw-r--r--std/http/io_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/http/io_test.ts b/std/http/io_test.ts
index acaa882f7..6c96d0b95 100644
--- a/std/http/io_test.ts
+++ b/std/http/io_test.ts
@@ -15,7 +15,7 @@ import {
writeResponse
} from "./io.ts";
import { encode, decode } from "../strings/mod.ts";
-import { BufReader, UnexpectedEOFError, ReadLineResult } from "../io/bufio.ts";
+import { BufReader, ReadLineResult } from "../io/bufio.ts";
import { chunkedBodyReader } from "./io.ts";
import { ServerRequest, Response } from "./server.ts";
import { StringReader } from "../io/readers.ts";
@@ -369,7 +369,7 @@ test(async function testReadRequestError(): Promise<void> {
},
{
in: "GET / HTTP/1.1\r\nheader:foo\r\n",
- err: UnexpectedEOFError
+ err: Deno.errors.UnexpectedEof
},
{ in: "", err: Deno.EOF },
{
@@ -437,7 +437,7 @@ test(async function testReadRequestError(): Promise<void> {
} else if (typeof test.err === "string") {
assertEquals(err.message, test.err);
} else if (test.err) {
- assert(err instanceof (test.err as typeof UnexpectedEOFError));
+ assert(err instanceof (test.err as typeof Deno.errors.UnexpectedEof));
} else {
assert(req instanceof ServerRequest);
assert(test.headers);