Skip to content

Commit 6f68f30

Browse files
committed
fixup: test
1 parent 2ba4a10 commit 6f68f30

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/parallel/test-stream-pipeline.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -1402,8 +1402,14 @@ const net = require('net');
14021402
const writableLike = new EE();
14031403
writableLike.write = () => false;
14041404

1405-
pipeline(async function *() { yield null }, writableLike,
1406-
common.expectsError({ code: 'ERR_STREAM_PREMATURE_CLOSE' }));
1405+
pipeline(
1406+
async function *() {
1407+
yield null;
1408+
yield null;
1409+
},
1410+
writableLike,
1411+
common.expectsError({ code: 'ERR_STREAM_PREMATURE_CLOSE' })
1412+
);
14071413

14081414
writableLike.emit('close');
14091415
}

0 commit comments

Comments
 (0)