mirror of
https://github.com/nodejs/node.git
synced 2024-11-24 20:29:23 +01:00
a1652324cd
The original test lauches 10 child processes at once and bypass `test.py`'s process regulation. This PR reduces the unmanaged parallelism and is a temporary workaround for #9979 (not a real fix). PR-URL: https://github.com/nodejs/node/pull/10329 Reviewed-By: Anna Henningsen <anna@addaleax.net>
22 lines
352 B
JavaScript
22 lines
352 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
const domain = require('domain');
|
|
|
|
function test() {
|
|
const d = domain.create();
|
|
const d2 = domain.create();
|
|
|
|
d.run(function() {
|
|
d2.run(function() {
|
|
throw new Error('boom!');
|
|
});
|
|
});
|
|
}
|
|
|
|
if (process.argv[2] === 'child') {
|
|
test();
|
|
} else {
|
|
common.childShouldThrowAndAbort();
|
|
}
|