Skip to content

Commit

Permalink
test: refactor test-cluster-basic
Browse files Browse the repository at this point in the history
* Use common.mustNotCall() to check that callback is not invoked.
* Add space per test writing guide.

PR-URL: #13905
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and MylesBorins committed Aug 15, 2017
1 parent 0cb7bab commit 5865268
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-cluster-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';
const common = require('../common');

const assert = require('assert');
const cluster = require('cluster');

Expand All @@ -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 = {
Expand Down

0 comments on commit 5865268

Please sign in to comment.