From 74945dd18a5f9d3b3198981ce8bd32e253baabce Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 24 Jun 2017 20:32:44 -0700 Subject: [PATCH] test: refactor test-cluster-basic * Use common.mustNotCall() to check that callback is not invoked. * Add space per test writing guide. PR-URL: https://github.com/nodejs/node/pull/13905 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Yuta Hiroto Reviewed-By: James M Snell --- test/parallel/test-cluster-basic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-cluster-basic.js b/test/parallel/test-cluster-basic.js index fa3c051ae17290..6d1b93f0ef375a 100644 --- a/test/parallel/test-cluster-basic.js +++ b/test/parallel/test-cluster-basic.js @@ -1,5 +1,6 @@ 'use strict'; const common = require('../common'); + const assert = require('assert'); const cluster = require('cluster'); @@ -14,7 +15,7 @@ function forEach(obj, fn) { if (cluster.isWorker) { - require('http').Server(common.noop).listen(0, '127.0.0.1'); + require('http').Server(common.mustNotCall()).listen(0, '127.0.0.1'); } else if (cluster.isMaster) { const checks = {