Navigation Menu

Skip to content

Commit

Permalink
spec: don't use domain.dispose()
Browse files Browse the repository at this point in the history
`domain.dispose()` has been emitting a runtime deprecation warning
since 2013 (!) and is removed in Node 9. There is no reason to call
it for these tests, so the call can safely be removed.
  • Loading branch information
addaleax committed Oct 18, 2017
1 parent 1f04d5d commit b944fe0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions spec/q-spec.js
Expand Up @@ -2633,9 +2633,6 @@ if (typeof require === "function") {
beforeEach(function () {
d = domain.create();
});
afterEach(function() {
d.dispose();
});

it("should work for non-promise async inside a promise handler",
function (done) {
Expand Down

0 comments on commit b944fe0

Please sign in to comment.