Skip to content

Commit 74945dd

Browse files
TrottMylesBorins
authored andcommitted
test: refactor test-cluster-basic
* Use common.mustNotCall() to check that callback is not invoked. * Add space per test writing guide. PR-URL: #13905 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 70901b2 commit 74945dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-cluster-basic.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22
const common = require('../common');
3+
34
const assert = require('assert');
45
const cluster = require('cluster');
56

@@ -14,7 +15,7 @@ function forEach(obj, fn) {
1415

1516

1617
if (cluster.isWorker) {
17-
require('http').Server(common.noop).listen(0, '127.0.0.1');
18+
require('http').Server(common.mustNotCall()).listen(0, '127.0.0.1');
1819
} else if (cluster.isMaster) {
1920

2021
const checks = {

0 commit comments

Comments
 (0)