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 committed 2012-10-31 17:07:58 -07:00
1 parent 07d3b21f43
commit a12c42ca2f
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ function write() {
} catch (ex) {
throw new Error('this should never happen');
}
process.nextTick(function() {
setImmediate(function() {
write();
});
}