node/test/parallel/test-net-autoselectfamily-attempt-timeout-cli-option.js
Paolo Insogna 833e342f15
net: add CLI option for autoSelectFamilyAttemptTimeout
PR-URL: https://github.com/nodejs/node/pull/52474
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
2024-04-17 09:06:12 +00:00

11 lines
323 B
JavaScript

'use strict';
// Flags: --network-family-autoselection-attempt-timeout=123
const { platformTimeout } = require('../common');
const assert = require('assert');
const { getDefaultAutoSelectFamilyAttemptTimeout } = require('net');
assert.strictEqual(getDefaultAutoSelectFamilyAttemptTimeout(), platformTimeout(123 * 10));