Add failure scenarios tests for connection, appendToStream, deleteStream (wip)

This commit is contained in:
Nicolas Dextraze
2016-03-11 15:55:27 -08:00
parent b0a0af536d
commit 0b63df85e7
16 changed files with 420 additions and 32 deletions

View File

@ -16,11 +16,13 @@ function TcpConnection(log, connectionId, remoteEndPoint, onConnectionClosed) {
this._receiveQueue = [];
Object.defineProperty(this, 'remoteEndPoint', {
enumerable: true,
get: function() {
return this._remoteEndPoint;
}
});
Object.defineProperty(this, 'localEndPoint', {
enumerable: true,
get: function() {
return this._localEndPoint;
}

View File

@ -67,21 +67,25 @@ function TcpPackageConnection(
});
}
Object.defineProperty(TcpPackageConnection.prototype, 'connectionId', {
enumerable: true,
get: function() {
return this._connectionId;
}
});
Object.defineProperty(TcpPackageConnection.prototype, 'isClosed', {
enumerable: true,
get: function() {
return this._connection.isClosed;
}
});
Object.defineProperty(TcpPackageConnection.prototype, 'remoteEndPoint', {
enumerable: true,
get: function() {
return this._connection.remoteEndPoint;
}
});
Object.defineProperty(TcpPackageConnection.prototype, 'localEndPoint', {
enumerable: true,
get: function() {
return this._connection.localEndPoint;
}