Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
test: update comment for test description
  • Loading branch information
kuriyosh committed Dec 27, 2021
commit 6ef49ff546de6fafeffb46e9e57f9fae02fff0c9
3 changes: 1 addition & 2 deletions test/parallel/test-net-deprecated-setsimultaneousaccepts.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Flags: --no-warnings
'use strict';

// This test checks that `_setSimultaneousAccepts` emit DEP0121 warning.
// Ref test-net-server-simultaneous-accepts-produce-warning-once.js
// Test that DEP0121 is emitted on the first call of _setSimultaneousAccepts().

const {
expectWarning
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
'use strict';

// This test checks that `_setSimultaneousAccepts` does not emit DEP0121 warning
// in second calling, by combination with
// `test-net-deprecated-setsimultaneousaccepts.js`.
// Test that DEP0121 is emitted only once if _setSimultaneousAccepts() is called
// more than once. This test is similar to
// test-net-deprecated-setsimultaneousaccepts.js, but that test calls
// _setSimultaneousAccepts() only once. Unlike this test, that will confirm
// that the warning is emitted on the first call. This test doesn't check which
// call caused the warning to be emitted.

const { expectWarning } = require('../common');
const { _setSimultaneousAccepts } = require('net');
Expand Down