Skip to content

Commit 3235d31

Browse files
melikhov-devgireeshpunathil
authored andcommitted
test: add test for _setSimultaneousAccepts()
Add a test case that verifies that calling _setSimultaneousAccepts() function twice does not trigger the deprecation warning twice. PR-URL: #24180 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 531d854 commit 3235d31

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'use strict';
2+
3+
const { expectWarning } = require('../common');
4+
const net = require('net');
5+
6+
expectWarning(
7+
'DeprecationWarning',
8+
'net._setSimultaneousAccepts() is deprecated and will be removed.',
9+
'DEP0121');
10+
11+
net._setSimultaneousAccepts();
12+
net._setSimultaneousAccepts();

0 commit comments

Comments
 (0)