node/test/parallel/test-net-autoselectfamily-attempt-timeout-cli-option.js

11 lines
323 B
JavaScript
Raw Normal View History

'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));