Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

test: fix test-debug-port-from-cmdline.js #9049

Conversation

misterdjules
Copy link

Make this test less prone to race conditions by using synchronous
interprocess communication instead of a timer to determine when the
child process is ready to receive messages from its parent.

Also, remove a superfluous timer since the tests suite already makes
tests time out after a while.

Make this test less prone to race conditions by using synchronous
interprocess communication instead of a timer to determine when the
child process is ready to receive messages from its parent.

Also, remove a superfluous timer since the tests suite already makes
tests time out after a while.
@tjfontaine
Copy link

lgtm

@misterdjules
Copy link
Author

@tjfontaine Thanks! Landed in 7a8ea15.

bnoordhuis pushed a commit to bnoordhuis/io.js that referenced this pull request Jan 19, 2015
Make this test less prone to race conditions by using synchronous
interprocess communication instead of a timer to determine when the
child process is ready to receive messages from its parent.

Also, remove a superfluous timer since the tests suite already makes
tests time out after a while.

Original-PR-URL: nodejs/node-v0.x-archive#9049
Reviewed-By: Timothy J Fontaine <tjfontaine@gmail.com>

PR-URL: nodejs#501
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants