summaryrefslogtreecommitdiff
path: root/std/http/server_test.ts
diff options
context:
space:
mode:
authorYusuke Sakurai <kerokerokerop@gmail.com>2020-02-24 01:59:36 +0900
committerGitHub <noreply@github.com>2020-02-23 11:59:36 -0500
commitd9886a44d107de48b312ba71833709494b5ade5e (patch)
treeef61ff2a5f8fd9e9054bac28b76639abd129c44d /std/http/server_test.ts
parente9fff02e9681f3eb2edee9f94db66b140e179899 (diff)
fix: [ws] sock shouldn't throw eof error when failed to read frame (#4083)
Diffstat (limited to 'std/http/server_test.ts')
-rw-r--r--std/http/server_test.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/std/http/server_test.ts b/std/http/server_test.ts
index 89aaca4ea..b145b8353 100644
--- a/std/http/server_test.ts
+++ b/std/http/server_test.ts
@@ -12,7 +12,8 @@ import {
assertEquals,
assertNotEquals,
assertThrowsAsync,
- AssertionError
+ AssertionError,
+ assertNotEOF
} from "../testing/asserts.ts";
import {
Response,
@@ -32,11 +33,6 @@ import {
import { delay, deferred } from "../util/async.ts";
import { StringReader } from "../io/readers.ts";
-function assertNotEOF<T extends {}>(val: T | Deno.EOF): T {
- assertNotEquals(val, Deno.EOF);
- return val as T;
-}
-
interface ResponseTest {
response: Response;
raw: string;