diff options
author | Yusuke Sakurai <kerokerokerop@gmail.com> | 2020-02-24 01:59:36 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-23 11:59:36 -0500 |
commit | d9886a44d107de48b312ba71833709494b5ade5e (patch) | |
tree | ef61ff2a5f8fd9e9054bac28b76639abd129c44d /std/textproto/reader_test.ts | |
parent | e9fff02e9681f3eb2edee9f94db66b140e179899 (diff) |
fix: [ws] sock shouldn't throw eof error when failed to read frame (#4083)
Diffstat (limited to 'std/textproto/reader_test.ts')
-rw-r--r-- | std/textproto/reader_test.ts | 9 |
1 files changed, 2 insertions, 7 deletions
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<T extends {}>(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))); } |