Skip to content

Commit

Permalink
Fix flow control tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nwgh committed Sep 7, 2016
1 parent 8e4b02c commit 8c83102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/protocol/flow.js
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion test/flow.js
Expand Up @@ -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);
Expand Down

0 comments on commit 8c83102

Please sign in to comment.