summaryrefslogtreecommitdiff
path: root/test/parallel/test-net-deprecated-setsimultaneousaccepts.js
blob: dd6decdcce513f9f9c820be238ebd3794bc95292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Flags: --no-warnings
'use strict';

// Test that DEP0121 is emitted on the first call of _setSimultaneousAccepts().

const {
  expectWarning
} = require('../common');
const {
  _setSimultaneousAccepts
} = require('net');

expectWarning(
  'DeprecationWarning',
  'net._setSimultaneousAccepts() is deprecated and will be removed.',
  'DEP0121');

_setSimultaneousAccepts();