We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdf5538 commit cd5290aCopy full SHA for cd5290a
test/mocha/integration/stdin_backpressure.js
@@ -40,7 +40,16 @@ function timeoutSignal(ms) {
40
describe('stdin backpressuring server', function setup() {
41
let httpURL;
42
43
- stream.setDefaultHighWaterMark(false, 3);
+ // Monkey-patch for different highWaterMark
44
+ const oldDuplex = stream.Duplex;
45
+ function newDuplex(options) {
46
+ options = options || {};
47
+ options.readableHighWaterMark = 3;
48
+ oldDuplex.call(this, options);
49
+ }
50
+ newDuplex.prototype = oldDuplex.prototype;
51
+ newDuplex.prototype.constructor = newDuplex;
52
+ stream.Duplex = newDuplex;
53
54
before(function startFcgiServer(done) {
55
function sendError(res, err) {
0 commit comments