<!-- Thank you for reporting an issue. This issue tracker is for bugs and issues found within Node.js core. If you require more general support please file an issue on our help repo. https://github.com/nodejs/help Please fill in as much of the template below as you're able. Version: output of `node -v` Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) Subsystem: if known, please specify affected core module name If possible, please provide code that demonstrates the problem, keeping it as simple and free of external dependencies as you are able. --> * **Version**: `master` * **Platform**: freeBSD * **Subsystem**: test,stream <!-- Enter your issue details below this comment. --> ```js not ok 912 parallel/test-pipe-stream --- duration_ms: 3.136 severity: fail stack: |- events.js:182 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE /usr/home/iojs/node-tmp/tmp.1/test.sock at Object.exports._errnoException (util.js:1023:11) at exports._exceptionWithHostPort (util.js:1046:20) at Server.setupListenHandle [as _listen2] (net.js:1302:19) at listenInCluster (net.js:1367:12) at Server.listen (net.js:1478:5) at test (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd10-64/test/parallel/test-pipe-stream.js:56:10) at /usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd10-64/test/parallel/test-pipe-stream.js:66:3 at Server.<anonymous> (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd10-64/test/parallel/test-pipe-stream.js:61:11) at emitNone (events.js:105:13) at Server.emit (events.js:207:7) ... ``` https://ci.nodejs.org/job/node-test-commit-freebsd/10201/nodes=freebsd10-64/
Activity
refack commentedon Jul 7, 2017
/cc @nodejs/platform-freebsd @nodejs/streams
mcollina commentedon Jul 10, 2017
The problem starts because we are not rotating/changing
common.PIPEand https://github.com/nodejs/node/blob/master/test/common/index.js#L259-L266.If there is another process left there, or if that is not cleaned up correctly, this will fail.
This should be done by https://github.com/nodejs/node/blob/master/test/common/index.js#L156-L159 called from https://github.com/nodejs/node/blob/master/test/parallel/test-pipe-stream.js#L6, but it seems not happening on freebsd.
refack commentedon Jul 11, 2017
@mcollina tl;dr you think best solution is for
commonto rotatecommon.PIPE? If yes, I'll open a PR.mcollina commentedon Jul 11, 2017
Yes, I think so. Or to do one based on the process PID.
refack commentedon Jul 11, 2017
PR #14168
(Untested)CI ✔️test: make common.PIPE process unique
test: make common.PIPE process unique
test: make common.PIPE process unique