diff --git a/test/parallel/test-net-server-simultaneous-accepts-produce-warning-once.js b/test/parallel/test-net-server-simultaneous-accepts-produce-warning-once.js new file mode 100644 index 00000000000000..ffca38f603b2a9 --- /dev/null +++ b/test/parallel/test-net-server-simultaneous-accepts-produce-warning-once.js @@ -0,0 +1,12 @@ +'use strict'; + +const { expectWarning } = require('../common'); +const net = require('net'); + +expectWarning( + 'DeprecationWarning', + 'net._setSimultaneousAccepts() is deprecated and will be removed.', + 'DEP0121'); + +net._setSimultaneousAccepts(); +net._setSimultaneousAccepts();