Skip to content
Closed
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
squash
  • Loading branch information
Trott committed Jan 12, 2017
commit 7d6aff4fcef5b45a4c682989b04d24c1e3036669
7 changes: 6 additions & 1 deletion test/parallel/test-net-server-connections.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
'use strict';
require('../common');
const common = require('../common');
const assert = require('assert');

const net = require('net');

const server = new net.Server();

const expectedWarning = 'Server.connections property is deprecated. ' +
'Use Server.getConnections method instead.';

common.expectWarning('DeprecationWarning', expectedWarning);

// test that server.connections property is no longer enumerable now that it
// has been marked as deprecated
assert.strictEqual(Object.keys(server).indexOf('connections'), -1);
Expand Down