node/test/parallel/test-net-deprecated-setsimultaneousaccepts.js
Yoshiki Kurihara 24f4f7f6e2
test: add comments explaining _setSimultaneousAccepts deprecation tests
PR-URL: https://github.com/nodejs/node/pull/41307
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-12-27 15:20:24 +01:00

19 lines
376 B
JavaScript

// 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();