mirror of https://github.com/nodejs/node.git
test: Timeout#unref() does not return instance
Timeout#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. PR-URL: https://github.com/joyent/node/pull/9171 Reviewed-by: Colin Ihrig <cjihrig@gmail.com> Reviewed-by: Timothy J Fontaine <tjfontaine@gmail.com> Conflicts: test/simple/test-timers-unref.jspull/835/head
parent
30dca66958
commit
3b1b4de903
|
@ -21,7 +21,8 @@ setTimeout(function() {
|
||||||
interval = setInterval(function() {
|
interval = setInterval(function() {
|
||||||
unref_interval = true;
|
unref_interval = true;
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
}, SHORT_TIME).unref();
|
}, SHORT_TIME);
|
||||||
|
interval.unref();
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
unref_timer = true;
|
unref_timer = true;
|
||||||
|
|
Loading…
Reference in New Issue