Add failure scenarios tests for connection, appendToStream, deleteStream (wip)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user