-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: remove duplicate test about deprecation warning
- Loading branch information
Showing
2 changed files
with
6 additions
and
18 deletions.
There are no files selected for viewing
16 changes: 0 additions & 16 deletions
16
test/parallel/test-net-deprecated-setsimultaneousaccepts.js
This file was deleted.
Oops, something went wrong.
8 changes: 6 additions & 2 deletions
8
test/parallel/test-net-server-simultaneous-accepts-produce-warning-once.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
'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'); | ||
'DEP0121' | ||
); | ||
|
||
process.on('warning', mustCall(() => { | ||
process.on('warning', mustNotCall()); | ||
})); | ||
net._setSimultaneousAccepts(); | ||
net._setSimultaneousAccepts(); |