mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
Fix tests (#51)
* Fix error event test in Sync tests * Fix race condition * Debug timeouts * More tests fixing * Try running local webrtc-star-signalling server for tests * Fix sync tests * Skip Log references tests in the browser tests
This commit is contained in:
@@ -137,7 +137,7 @@ describe('orbit-db - Multiple Databases', function () {
|
||||
})
|
||||
|
||||
it('replicates multiple open databases', async () => {
|
||||
const entryCount = 32
|
||||
const entryCount = 10
|
||||
|
||||
// Write entries to each database
|
||||
console.log('Writing to databases')
|
||||
@@ -169,7 +169,9 @@ describe('orbit-db - Multiple Databases', function () {
|
||||
|
||||
console.log('Waiting for replication to finish')
|
||||
|
||||
await waitFor(() => allReplicated(), () => true)
|
||||
await waitFor(async () => await allReplicated(), () => true, 2000)
|
||||
|
||||
console.log('Replication finished')
|
||||
|
||||
for (let i = 0; i < databaseInterfaces.length; i++) {
|
||||
const db = remoteDatabases[i]
|
||||
|
||||
Reference in New Issue
Block a user