Skip to content

Commit b43547a

Browse files
Trottaddaleax
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 17636f6 commit b43547a

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
@@ -21,6 +21,7 @@
2121

2222
'use strict';
2323
const common = require('../common');
24+
2425
const assert = require('assert');
2526
const cluster = require('cluster');
2627

@@ -35,7 +36,7 @@ function forEach(obj, fn) {
3536

3637

3738
if (cluster.isWorker) {
38-
require('http').Server(common.noop).listen(0, '127.0.0.1');
39+
require('http').Server(common.mustNotCall()).listen(0, '127.0.0.1');
3940
} else if (cluster.isMaster) {
4041

4142
const checks = {

0 commit comments

Comments
 (0)