diff options
| author | Bert Belder <bertbelder@gmail.com> | 2021-01-14 20:32:27 -0800 |
|---|---|---|
| committer | Bert Belder <bertbelder@gmail.com> | 2021-01-29 01:35:07 -0800 |
| commit | 98878bd81231a631c494b6767576097f945eb813 (patch) | |
| tree | f66f027cf9692548696a7ce5417fba60cec51f60 /std/http | |
| parent | c8a5e3c1e485915880bd5ed10438ac87baf4a80b (diff) | |
refactor: IO resource types, fix concurrent read/write and graceful close (#9118)
Fixes: 9032.
Diffstat (limited to 'std/http')
| -rw-r--r-- | std/http/_mock_conn.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/std/http/_mock_conn.ts b/std/http/_mock_conn.ts index b2abb301a..8f3396dbd 100644 --- a/std/http/_mock_conn.ts +++ b/std/http/_mock_conn.ts @@ -14,7 +14,9 @@ export function mockConn(base: Partial<Deno.Conn> = {}): Deno.Conn { port: 0, }, rid: -1, - closeWrite: (): void => {}, + closeWrite: (): Promise<void> => { + return Promise.resolve(); + }, read: (): Promise<number | null> => { return Promise.resolve(0); }, |
