Skip to content

Commit c083a20

Browse files
cjihrigdavidtaikocha
authored andcommitted
test: use duplex streams in duplex stream test
test-stream-duplex.js uses transform streams instead of the duplex stream base class. This leads to some code not being covered in the Duplex constructor. PR-URL: #12514 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent 4bcbefc commit c083a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-stream-duplex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
const common = require('../common');
2424
const assert = require('assert');
25-
const Duplex = require('stream').Transform;
25+
const Duplex = require('stream').Duplex;
2626

2727
const stream = new Duplex({ objectMode: true });
2828

0 commit comments

Comments
 (0)