Skip to content

Commit

Permalink
Fix test spinning in the test runner (#1008)
Browse files Browse the repository at this point in the history
Fixes #972

IoT.js-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
  • Loading branch information
LaszloLango authored and yichoi committed Jun 28, 2017
1 parent 86f65e5 commit 3bc91fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/testsets.json
Expand Up @@ -116,7 +116,7 @@
],
"node/parallel": [
{ "name": "test-assert.js" },
{ "name": "test-http-status-message.js", "timeout": 20, "skip": ["all"], "reason": "it stalls" },
{ "name": "test-http-status-message.js" },
{ "name": "test-http-write-head.js" },
{ "name": "test-net-bind-twice.js" },
{ "name": "test-net-end-without-connect.js" },
Expand Down
4 changes: 2 additions & 2 deletions tools/test_runner.js
Expand Up @@ -53,7 +53,7 @@ Runner.prototype.cleanup = function() {

Runner.prototype.spin = function() {
var that = this;
process.nextTick(function() {
setTimeout(function() {
var timerOnlyAlive = !testdriver.isAliveExceptFor(that.timer);
if (timerOnlyAlive) {
timerOnlyAlive = !process._onNextTick();
Expand All @@ -66,7 +66,7 @@ Runner.prototype.spin = function() {
that.spin();
}
}
});
}, 0);
};

Runner.prototype.checkSkipModule = function() {
Expand Down

0 comments on commit 3bc91fa

Please sign in to comment.