Fix failing test
It only makes sense to send data on a websocket if the readyState is equal to 1.
This commit is contained in:
parent
d9728940d2
commit
bdda61fc73
|
|
@ -180,6 +180,7 @@ describe('Websock', function() {
|
|||
it('should actually send on the websocket if the websocket does not have too much buffered', function () {
|
||||
sock.maxBufferedAmount = 10;
|
||||
sock._websocket.bufferedAmount = 8;
|
||||
sock._websocket.readyState = 1;
|
||||
sock._sQ = [1, 2, 3];
|
||||
var encoded = sock._encode_message();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue