summaryrefslogtreecommitdiff
path: root/test/parallel/test-readline-async-iterators-destroy.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-readline-async-iterators-destroy.js')
-rw-r--r--test/parallel/test-readline-async-iterators-destroy.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/parallel/test-readline-async-iterators-destroy.js b/test/parallel/test-readline-async-iterators-destroy.js
index 746981a1ae..ea174d5172 100644
--- a/test/parallel/test-readline-async-iterators-destroy.js
+++ b/test/parallel/test-readline-async-iterators-destroy.js
@@ -42,6 +42,9 @@ async function testSimpleDestroy() {
expectedLines.splice(1);
assert.deepStrictEqual(iteratedLines, expectedLines);
+
+ rli.close();
+ readable.destroy();
}
}
@@ -72,6 +75,9 @@ async function testMutualDestroy() {
}
assert.deepStrictEqual(iteratedLines, expectedLines);
+
+ rli.close();
+ readable.destroy();
}
}