summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-getcipher.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tls-getcipher.js')
-rw-r--r--test/parallel/test-tls-getcipher.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/parallel/test-tls-getcipher.js b/test/parallel/test-tls-getcipher.js
index 100c4143c0..4ecacb1e9f 100644
--- a/test/parallel/test-tls-getcipher.js
+++ b/test/parallel/test-tls-getcipher.js
@@ -18,15 +18,8 @@ var options = {
honorCipherOrder: true
};
-var nconns = 0;
-
-process.on('exit', function() {
- assert.equal(nconns, 1);
-});
-
-var server = tls.createServer(options, function(cleartextStream) {
- nconns++;
-});
+var server = tls.createServer(options,
+ common.mustCall(function(cleartextStream) {}));
server.listen(0, '127.0.0.1', function() {
var client = tls.connect({