Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
deokjinkim committed Dec 5, 2022
1 parent c16edf4 commit 1e767c8
Showing 1 changed file with 14 additions and 0 deletions.
@@ -0,0 +1,14 @@
'use strict';
const common = require('../common');
const assert = require('assert');
const net = require('net');

const autoSelectFamilyAttemptTimeout = common.platformTimeout(-10)

assert.throws(() => {
net.connect({
port: 8080,
autoSelectFamily: true,
autoSelectFamilyAttemptTimeout,
})
}, { code: 'ERR_OUT_OF_RANGE' });

0 comments on commit 1e767c8

Please sign in to comment.