Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit b944fe0

Browse files
committed
spec: don't use domain.dispose()
`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.
1 parent 1f04d5d commit b944fe0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

spec/q-spec.js

-3
Original file line numberDiff line numberDiff line change
@@ -2633,9 +2633,6 @@ if (typeof require === "function") {
26332633
beforeEach(function () {
26342634
d = domain.create();
26352635
});
2636-
afterEach(function() {
2637-
d.dispose();
2638-
});
26392636

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

0 commit comments

Comments
 (0)