Skip to content

Commit 8c83102

Browse files
committed
Fix flow control tests
1 parent 8e4b02c commit 8c83102

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/protocol/flow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Flow.prototype._read = function _read() {
167167
} while (moreNeeded && (this._queue.length > 0));
168168
this._readableState.sync = false;
169169

170-
assert((moreNeeded == false) || // * output queue is full
170+
assert((!moreNeeded) || // * output queue is full
171171
(this._queue.length === 0) || // * flow control queue is empty
172172
(!this._window && (this._queue[0].type === 'DATA'))); // * waiting for window update
173173
}

test/flow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var util = require('./util');
33

44
var Flow = require('../lib/protocol/flow').Flow;
55

6-
var MAX_PAYLOAD_SIZE = 4096;
6+
var MAX_PAYLOAD_SIZE = 16384;
77

88
function createFlow(log) {
99
var flowControlId = util.random(10, 100);

0 commit comments

Comments
 (0)