From 582623d099976b20d2296d3e41387c834d0b017c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sch=C3=A4r?= Date: Mon, 9 Feb 2015 16:51:12 +0100 Subject: [PATCH] timers test: unref does not return this The unref() call returns undefined, not this. The test already worked before, because the interval was still unref'd, and the test also succeeds without clearing the interval. --- test/simple/test-timers-unref.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/simple/test-timers-unref.js b/test/simple/test-timers-unref.js index 1c362cb836f..17e107326b2 100644 --- a/test/simple/test-timers-unref.js +++ b/test/simple/test-timers-unref.js @@ -42,7 +42,8 @@ setTimeout(function() { interval = setInterval(function() { unref_interval = true; clearInterval(interval); -}, SHORT_TIME).unref(); +}, SHORT_TIME); +interval.unref(); setTimeout(function() { unref_timer = true;