mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
Add Entry index to Log (#48)
* Turn off IPFS console.log output for tests * Fix replication and sync tests * Close keystore after tests in IPFSAccessController tests * Fix error event test in Sync tests * Fix race condition * Add entry index to Log * Clean up storage files * Fix tests * Fix linter
This commit is contained in:
@@ -157,7 +157,15 @@ describe('orbit-db - Multiple Databases', function () {
|
||||
}
|
||||
|
||||
// Function to check if all databases have been replicated
|
||||
const allReplicated = () => remoteDatabases.every(isReplicated)
|
||||
const allReplicated = async () => {
|
||||
for (const db of remoteDatabases) {
|
||||
const replicated = await isReplicated(db)
|
||||
if (!replicated) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
console.log('Waiting for replication to finish')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user