diff options
Diffstat (limited to 'std/http/server_test.ts')
-rw-r--r-- | std/http/server_test.ts | 8 |
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; |