mirror of
https://github.com/denoland/deno.git
synced 2025-03-09 21:57:40 -04: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"} */
|
* @default {"127.0.0.1"} */
|
||||||
hostname?: string;
|
hostname?: string;
|
||||||
transport?: "tcp";
|
transport?: "tcp";
|
||||||
signal?: AbortSignal | null;
|
signal?: AbortSignal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1281,7 +1281,7 @@ Deno.test(
|
||||||
{ permissions: { net: true } },
|
{ permissions: { net: true } },
|
||||||
async function netTcpWithAbortSignal() {
|
async function netTcpWithAbortSignal() {
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
setTimeout(() => controller.abort(), 1000);
|
setTimeout(() => controller.abort(), 100);
|
||||||
const error = await assertRejects(
|
const error = await assertRejects(
|
||||||
async () => {
|
async () => {
|
||||||
await Deno.connect({
|
await Deno.connect({
|
||||||
|
|
Loading…
Add table
Reference in a new issue