fixed test suite. It stopped working because of previous adoptions on the gc behavior. I failed to notice it..
This commit is contained in:
@@ -147,11 +147,15 @@ module.exports = function (Y) {
|
||||
return Y.utils.globalRoom.flushAll()
|
||||
}
|
||||
disconnect () {
|
||||
var waitForMe = Promise.resolve()
|
||||
if (!this.isDisconnected()) {
|
||||
globalRoom.removeUser(this.userId)
|
||||
super.disconnect()
|
||||
waitForMe = super.disconnect()
|
||||
}
|
||||
return this.y.db.whenTransactionsFinished()
|
||||
var self = this
|
||||
return waitForMe.then(function () {
|
||||
return self.y.db.whenTransactionsFinished()
|
||||
})
|
||||
}
|
||||
flush () {
|
||||
var self = this
|
||||
|
||||
Reference in New Issue
Block a user