1
0
Fork 0
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:
Yoshiya Hinosawa 2024-12-10 18:15:29 +09:00 committed by GitHub
parent 68d0e565f1
commit 81690762cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -290,7 +290,7 @@ declare namespace Deno {
* @default {"127.0.0.1"} */
hostname?: string;
transport?: "tcp";
signal?: AbortSignal | null;
signal?: AbortSignal;
}
/**

View file

@ -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({