Skip to content

Commit

Permalink
test: remove duplicate test about deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kuriyosh authored and Trott committed Dec 24, 2021
1 parent 2b63dfe commit 7fa3e4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
16 changes: 0 additions & 16 deletions test/parallel/test-net-deprecated-setsimultaneousaccepts.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
'use strict';

const { expectWarning } = require('../common');
const { expectWarning, mustCall, mustNotCall } = require('../common');
const net = require('net');

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

process.on('warning', mustCall(() => {
process.on('warning', mustNotCall());
}));
net._setSimultaneousAccepts();
net._setSimultaneousAccepts();

0 comments on commit 7fa3e4e

Please sign in to comment.