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

[node] Don't call callbacks synchronously #8243

Closed
wants to merge 1 commit into from

Conversation

jfirebaugh
Copy link
Contributor

Fixes memory.test.js deadlock (#8199 (comment)).

Fixes memory.test.js deadlock.
@mention-bot
Copy link

@jfirebaugh, thanks for your PR! By analyzing this pull request, we identified @tmpsantos to be potential reviewers.

@tmpsantos
Copy link
Contributor

@jfirebaugh my apologies, I should have told you that I fixed this on this PR: #8249

If you don't mind, we could close this one because on my PR I moved the mock file source to a separated file to be reused in other tests.

} else {
t.fail('unhandled file request: ' + req.url);
}
setTimeout(function () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

process.nextTick is more efficient than setTimeout(, 0)

@jfirebaugh jfirebaugh closed this Mar 2, 2017
@jfirebaugh jfirebaugh deleted the fix-node-memory-test branch March 2, 2017 02:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants