fixed the test suite
This commit is contained in:
parent
541a93d152
commit
661232f23c
@ -131,7 +131,9 @@ class AbstractConnector {
|
|||||||
f()
|
f()
|
||||||
}
|
}
|
||||||
this.whenSyncedListeners = []
|
this.whenSyncedListeners = []
|
||||||
this.y.db.garbageCollectAfterSync()
|
this.y.db.requestTransaction(function *() {
|
||||||
|
yield* this.store.garbageCollectAfterSync()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
send (uid, message) {
|
send (uid, message) {
|
||||||
|
@ -268,16 +268,13 @@ function async (makeGenerator) {
|
|||||||
}
|
}
|
||||||
g.async = async
|
g.async = async
|
||||||
|
|
||||||
var logUsers = async(function * logUsers (self) {
|
function logUsers (self) {
|
||||||
if (self.constructor === Array) {
|
if (self.constructor === Array) {
|
||||||
self = {users: self}
|
self = {users: self}
|
||||||
}
|
}
|
||||||
console.log('User 1: ', self.users[0].connector.userId, "=============================================") // eslint-disable-line
|
self.users[0].db.logTable()
|
||||||
yield self.users[0].db.logTable() // eslint-disable-line
|
self.users[1].db.logTable()
|
||||||
console.log('User 2: ', self.users[1].connector.userId, "=============================================") // eslint-disable-line
|
self.users[2].db.logTable()
|
||||||
yield self.users[1].db.logTable() // eslint-disable-line
|
}
|
||||||
console.log('User 3: ', self.users[2].connector.userId, "=============================================") // eslint-disable-line
|
|
||||||
yield self.users[2].db.logTable() // eslint-disable-line
|
|
||||||
})
|
|
||||||
|
|
||||||
g.logUsers = logUsers
|
g.logUsers = logUsers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user