Skip to content

Commit 28db916

Browse files
kuriyoshTrott
authored andcommitted
test: remove duplicate test about deprecation warning
1 parent 2b63dfe commit 28db916

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

test/parallel/test-net-deprecated-setsimultaneousaccepts.js

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
'use strict';
22

3-
const { expectWarning } = require('../common');
3+
const { expectWarning, mustCall, mustNotCall } = require('../common');
44
const net = require('net');
55

66
expectWarning(
77
'DeprecationWarning',
88
'net._setSimultaneousAccepts() is deprecated and will be removed.',
9-
'DEP0121');
9+
'DEP0121'
10+
);
1011

12+
process.on('warning', mustCall(() => {
13+
process.on('warning', mustNotCall());
14+
}));
1115
net._setSimultaneousAccepts();
1216
net._setSimultaneousAccepts();

0 commit comments

Comments
 (0)