From d9886a44d107de48b312ba71833709494b5ade5e Mon Sep 17 00:00:00 2001 From: Yusuke Sakurai Date: Mon, 24 Feb 2020 01:59:36 +0900 Subject: fix: [ws] sock shouldn't throw eof error when failed to read frame (#4083) --- std/textproto/reader_test.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'std/textproto/reader_test.ts') diff --git a/std/textproto/reader_test.ts b/std/textproto/reader_test.ts index 8f4b07242..32182ce65 100644 --- a/std/textproto/reader_test.ts +++ b/std/textproto/reader_test.ts @@ -9,16 +9,11 @@ import { stringsReader } from "../io/util.ts"; import { assert, assertEquals, - assertNotEquals, - assertThrows + assertThrows, + assertNotEOF } from "../testing/asserts.ts"; const { test } = Deno; -function assertNotEOF(val: T | Deno.EOF): T { - assertNotEquals(val, Deno.EOF); - return val as T; -} - function reader(s: string): TextProtoReader { return new TextProtoReader(new BufReader(stringsReader(s))); } -- cgit v1.2.3