We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c7e371 commit 48ea4c2Copy full SHA for 48ea4c2
test/parallel/test-stream-writable-end-cb-error.js
@@ -56,11 +56,13 @@ const stream = require('stream');
56
setImmediate(callback);
57
}
58
});
59
- w.end('testing ended state', common.mustCall());
+ w.end('testing ended state', common.mustCall((err) => {
60
+ assert.strictEqual(err.code, 'ERR_STREAM_DESTROYED');
61
+ }));
62
assert.strictEqual(w.destroyed, false);
63
assert.strictEqual(w.writableEnded, true);
64
w.end(common.mustCall((err) => {
- assert.strictEqual(err.code, 'ERR_STREAM_WRITE_AFTER_END');
65
66
}));
67
68
0 commit comments