From 57f8f27345ec74e52c1f1c0c9a344daa0faf45f8 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 19 Apr 2017 12:08:05 -0400 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/12514 Reviewed-By: James M Snell Reviewed-By: Yuta Hiroto Reviewed-By: Luigi Pinca Reviewed-By: David Cai Reviewed-By: Daniel Bevenius --- test/parallel/test-stream-duplex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-stream-duplex.js b/test/parallel/test-stream-duplex.js index 0b71b3d9a50569..f36c711fa3bdbd 100644 --- a/test/parallel/test-stream-duplex.js +++ b/test/parallel/test-stream-duplex.js @@ -1,7 +1,7 @@ 'use strict'; require('../common'); const assert = require('assert'); -const Duplex = require('stream').Transform; +const Duplex = require('stream').Duplex; const stream = new Duplex({ objectMode: true });