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:
Haad
2023-03-27 13:09:44 +03:00
committed by GitHub
parent f396d97a69
commit 4fe1b0c1a1
17 changed files with 115 additions and 85 deletions

View File

@@ -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')