From 3bc91fa2ba75468223fb948accf9fd7a57a0fc83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Lang=C3=B3?= Date: Wed, 28 Jun 2017 10:31:41 +0200 Subject: [PATCH] Fix test spinning in the test runner (#1008) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #972 IoT.js-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com --- test/testsets.json | 2 +- tools/test_runner.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/testsets.json b/test/testsets.json index d4126d0f1c..ca5a8fb1d7 100644 --- a/test/testsets.json +++ b/test/testsets.json @@ -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" }, diff --git a/tools/test_runner.js b/tools/test_runner.js index 3bd59ff60c..c56c6746db 100644 --- a/tools/test_runner.js +++ b/tools/test_runner.js @@ -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(); @@ -66,7 +66,7 @@ Runner.prototype.spin = function() { that.spin(); } } - }); + }, 0); }; Runner.prototype.checkSkipModule = function() {