mirror of
https://github.com/nodejs/node.git
synced 2024-11-28 22:46:31 +01:00
3e1b1dd4a9
The copyright and license notice is already in the LICENSE file. There is no justifiable reason to also require that it be included in every file, since the individual files are not individually distributed except as part of the entire package.
18 lines
531 B
JavaScript
18 lines
531 B
JavaScript
var common = require('../common');
|
|
var assert = require('assert');
|
|
var cluster = require('cluster');
|
|
|
|
setTimeout(assert.fail.bind(assert, 'setup not emitted'), 1000).unref();
|
|
|
|
cluster.on('setup', function() {
|
|
var clusterArgs = cluster.settings.args;
|
|
var realArgs = process.argv;
|
|
assert.equal(clusterArgs[clusterArgs.length - 1],
|
|
realArgs[realArgs.length - 1]);
|
|
});
|
|
|
|
assert(process.argv[process.argv.length - 1] !== 'OMG,OMG');
|
|
process.argv.push('OMG,OMG');
|
|
process.argv.push('OMG,OMG');
|
|
cluster.setupMaster();
|