Skip to content

Commit

Permalink
tests: improve streaming test robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jul 10, 2015
1 parent f0dfda8 commit e1ebca0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/FakeServer.js
Expand Up @@ -386,7 +386,12 @@ FakeConnection.prototype._writePacketStream = function _writePacketStream(count)
var writer = new PacketWriter();
writer.writeLengthCodedString(num);
writer.writeLengthCodedString('Row #' + num);
this._socket.write(writer.toBuffer(this._parser));

try {
this._socket.write(writer.toBuffer(this._parser));
} catch (e) {
cleanup.call(this);
}
}
};

Expand Down

0 comments on commit e1ebca0

Please sign in to comment.