Skip to content

Commit 3bc91fa

Browse files
LaszloLangoyichoi
authored andcommitted
Fix test spinning in the test runner (#1008)
Fixes #972 IoT.js-DCO-1.0-Signed-off-by: László Langó [email protected]
1 parent 86f65e5 commit 3bc91fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/testsets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
],
117117
"node/parallel": [
118118
{ "name": "test-assert.js" },
119-
{ "name": "test-http-status-message.js", "timeout": 20, "skip": ["all"], "reason": "it stalls" },
119+
{ "name": "test-http-status-message.js" },
120120
{ "name": "test-http-write-head.js" },
121121
{ "name": "test-net-bind-twice.js" },
122122
{ "name": "test-net-end-without-connect.js" },

tools/test_runner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Runner.prototype.cleanup = function() {
5353

5454
Runner.prototype.spin = function() {
5555
var that = this;
56-
process.nextTick(function() {
56+
setTimeout(function() {
5757
var timerOnlyAlive = !testdriver.isAliveExceptFor(that.timer);
5858
if (timerOnlyAlive) {
5959
timerOnlyAlive = !process._onNextTick();
@@ -66,7 +66,7 @@ Runner.prototype.spin = function() {
6666
that.spin();
6767
}
6868
}
69-
});
69+
}, 0);
7070
};
7171

7272
Runner.prototype.checkSkipModule = function() {

0 commit comments

Comments
 (0)