We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bc294e commit 2739457Copy full SHA for 2739457
1 file changed
test/transmit.js
@@ -1447,6 +1447,15 @@ describe('transmission', () => {
1447
const handler = (request, h) => {
1448
1449
const stream = new Stream.Readable({ read: Hoek.ignore });
1450
+ if (stream.errored === undefined) {
1451
+
1452
+ // Expose errored property on node 14 & 16 to enable coverage
1453
1454
+ stream.on('error', () => {
1455
1456
+ stream.errored = true;
1457
+ });
1458
+ }
1459
1460
stream.push('hello');
1461
Hoek.wait(1).then(() => stream.destroy(new Error('failed')));
0 commit comments