mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
They tend to hang if they happen to run in parallel with another test that uses common.PORT. PR-URL: https://github.com/nodejs/node/pull/13592 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
14 lines
378 B
JavaScript
14 lines
378 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const spawn = require('child_process').spawn;
|
|
|
|
const child = spawn(process.execPath, ['--debug-brk=' + common.PORT, '-i']);
|
|
child.stderr.once('data', common.mustCall(function() {
|
|
child.stdin.end('.exit');
|
|
}));
|
|
|
|
child.on('exit', common.mustCall(function(c) {
|
|
assert.strictEqual(c, 0);
|
|
}));
|