mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 13:00:36 -05:00
Apply suggestions from code review
Signed-off-by: Yoshiya Hinosawa <stibium121@gmail.com>
This commit is contained in:
parent
68d0e565f1
commit
81690762cd
2 changed files with 2 additions and 2 deletions
2
ext/net/lib.deno_net.d.ts
vendored
2
ext/net/lib.deno_net.d.ts
vendored
|
@ -290,7 +290,7 @@ declare namespace Deno {
|
|||
* @default {"127.0.0.1"} */
|
||||
hostname?: string;
|
||||
transport?: "tcp";
|
||||
signal?: AbortSignal | null;
|
||||
signal?: AbortSignal;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1281,7 +1281,7 @@ Deno.test(
|
|||
{ permissions: { net: true } },
|
||||
async function netTcpWithAbortSignal() {
|
||||
const controller = new AbortController();
|
||||
setTimeout(() => controller.abort(), 1000);
|
||||
setTimeout(() => controller.abort(), 100);
|
||||
const error = await assertRejects(
|
||||
async () => {
|
||||
await Deno.connect({
|
||||
|
|
Loading…
Add table
Reference in a new issue