test: Use setImmediate for recursive deferral

This should have been with 21c741f, but didn't catch it then.
Taking our own advice.
This commit is contained in:
isaacs
2012-10-31 17:07:58 -07:00
parent 07d3b21f43
commit a12c42ca2f

View File

@@ -25,7 +25,7 @@ function write() {
} catch (ex) {
throw new Error('this should never happen');
}
process.nextTick(function() {
setImmediate(function() {
write();
});
}