From 42a51b6010b119ac0e89f7afae6d3fea80b782a1 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 });