From 8c83102b3f2ab8007550dcf97b128ba251404782 Mon Sep 17 00:00:00 2001 From: Nicholas Hurley Date: Tue, 6 Sep 2016 21:27:25 -0700 Subject: [PATCH] Fix flow control tests --- lib/protocol/flow.js | 2 +- test/flow.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/protocol/flow.js b/lib/protocol/flow.js index 75562f0..4ec5649 100644 --- a/lib/protocol/flow.js +++ b/lib/protocol/flow.js @@ -167,7 +167,7 @@ Flow.prototype._read = function _read() { } while (moreNeeded && (this._queue.length > 0)); this._readableState.sync = false; - assert((moreNeeded == false) || // * output queue is full + assert((!moreNeeded) || // * output queue is full (this._queue.length === 0) || // * flow control queue is empty (!this._window && (this._queue[0].type === 'DATA'))); // * waiting for window update } diff --git a/test/flow.js b/test/flow.js index a77507a..a077c68 100644 --- a/test/flow.js +++ b/test/flow.js @@ -3,7 +3,7 @@ var util = require('./util'); var Flow = require('../lib/protocol/flow').Flow; -var MAX_PAYLOAD_SIZE = 4096; +var MAX_PAYLOAD_SIZE = 16384; function createFlow(log) { var flowControlId = util.random(10, 100);