some flush updates

This commit is contained in:
Kevin Jahns 2016-05-04 17:14:39 +02:00
parent 5d6a9872e2
commit 996566419c
2 changed files with 2 additions and 4 deletions

View File

@ -81,7 +81,7 @@ module.exports = function (Y) {
} else {
resolve()
}
}, 10)
}, 0)
}
}
globalRoom.whenTransactionsFinished().then(nextFlush)

View File

@ -139,8 +139,7 @@ g.applyRandomTransactionsWithGC = async(function * applyRandomTransactions (user
})
g.garbageCollectAllUsers = async(function * garbageCollectAllUsers (users) {
// gc two times because of the two gc phases (really collect everything)
yield wait(100)
yield Y.utils.globalRoom.flushAll()
for (var i in users) {
yield users[i].db.emptyGarbageCollector()
}
@ -254,7 +253,6 @@ g.createUsers = async(function * createUsers (self, numberOfUsers, database, ini
Y.utils.globalRoom.users[u].y.destroy()
}
self.users = null
yield wait()
var promises = []
for (var i = 0; i < numberOfUsers; i++) {