diff options
author | Julien Gilli <julien.gilli@joyent.com> | 2015-11-23 13:13:40 -0800 |
---|---|---|
committer | Julien Gilli <julien.gilli@joyent.com> | 2015-11-26 18:10:32 -0800 |
commit | 1c8584997346d549dd5ff4bb787f48f52440a9cb (patch) | |
tree | bea642b3d8848d18dcffbed983bf8c069f855bcd /test/parallel/test-repl-autolibs.js | |
parent | 8b7503024924d003a7fd7adf04d1e95a040187a8 (diff) | |
download | android-node-v8-1c8584997346d549dd5ff4bb787f48f52440a9cb.tar.gz android-node-v8-1c8584997346d549dd5ff4bb787f48f52440a9cb.tar.bz2 android-node-v8-1c8584997346d549dd5ff4bb787f48f52440a9cb.zip |
test: fix test-domain-exit-dispose-again
test-domain-exit-dispose-again had been written for node v0.10.x, and
was using the fact that callbacks scheduled with `process.nextTick`
wouldn't run if the domain attached to it was disposed.
This is not longer the case, and as a result the test would not catch
any regression: it would always pass.
This change rewrites that test to check that the current domain is
cleared properly when processing the rest of the timers list if a
timer's callback throws an error. This makes the test fail without the
original fix, and pass with the original fix, as expected.
PR: #3990
PR-URL: https://github.com/nodejs/node/pull/3990
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'test/parallel/test-repl-autolibs.js')
0 files changed, 0 insertions, 0 deletions