diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2024-11-12 19:54:47 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-12 19:54:47 +0900 |
commit | c3c2b379669b17e5fdcbe5e62662404ca22c71c6 (patch) | |
tree | 91aae17a3c9dbad8aad35d41d52767b6df4dd24b /tests/unit_node | |
parent | 90236d67c591d4344a9ca0e5d23a4906d08308e5 (diff) |
fix(ext/node): add autoSelectFamily option to net.createConnection (#26661)
Diffstat (limited to 'tests/unit_node')
-rw-r--r-- | tests/unit_node/http2_test.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit_node/http2_test.ts b/tests/unit_node/http2_test.ts index 7473a487a..c540c90f7 100644 --- a/tests/unit_node/http2_test.ts +++ b/tests/unit_node/http2_test.ts @@ -10,6 +10,11 @@ import * as net from "node:net"; import { assert, assertEquals } from "@std/assert"; import { curlRequest } from "../unit/test_util.ts"; +// Increase the timeout for the auto select family to avoid flakiness +net.setDefaultAutoSelectFamilyAttemptTimeout( + net.getDefaultAutoSelectFamilyAttemptTimeout() * 30, +); + for (const url of ["http://localhost:4246", "https://localhost:4247"]) { Deno.test(`[node/http2 client] ${url}`, { ignore: Deno.build.os === "windows", |