Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: use shorthand properties in cluster tests
  • Loading branch information
tniessen committed Jan 11, 2018
commit 3ee47a946c008047779bf01e9558b95d17c620ce
2 changes: 1 addition & 1 deletion test/parallel/test-cluster-dgram-1.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function worker() {

// Every 10 messages, notify the master.
if (received === PACKETS_PER_WORKER) {
process.send({ received: received });
process.send({ received });
socket.close();
}
}, PACKETS_PER_WORKER));
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-cluster-worker-no-exit.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if (cluster.isMaster) {

worker = cluster.fork()
.on('online', function() {
this.send({ port: port });
this.send({ port });
});
});
process.on('exit', function() {
Expand Down