mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
chore: update mock Deno.Conn (#1867)
This commit is contained in:
parent
35ab96449b
commit
c331dad1df
@ -24,6 +24,8 @@ export function mockConn(base: Partial<Deno.Conn> = {}): Deno.Conn {
|
||||
return Promise.resolve(-1);
|
||||
},
|
||||
close: (): void => {},
|
||||
setNoDelay: (_nodelay?: boolean): void => {},
|
||||
setKeepAlive: (_keepalive?: boolean): void => {},
|
||||
...base,
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user