Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: add test for _setSimultaneousAccepts()
Add a test case that verifies that calling the `_setSimultaneousAccepts()`
function twice does not trigger the deprecation warning twice.
  • Loading branch information
melikhov-dev committed Nov 10, 2018
commit 3223663f48cf519c46ac50faf84c254b32a74ee3
Original file line number Diff line number Diff line change
@@ -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();