Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: tests
  • Loading branch information
ronag committed Nov 29, 2022
commit 2a412af52a034f6dc1004d4b21219cc671798552
9 changes: 8 additions & 1 deletion test/parallel/test-http-client-incomingmessage-destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ server.listen(0, () => {
get({
port: server.address().port
}, common.mustCall((res) => {
res.destroy(new Error('Destroy test'));
const err = new Error('Destroy test')
Comment thread
ronag marked this conversation as resolved.
Outdated
assert.strictEqual(res.errored, null);
res.destroy(err);
assert.strictEqual(res.closed, false);
assert.strictEqual(res.errored, err);
res.on('close', () => {
assert.strictEqual(res.closed, true);
})
Comment thread
ronag marked this conversation as resolved.
Outdated
}));
});