diff --git a/test/stress-test.js b/test/stress-test.js index 439e6ae..e099dac 100644 --- a/test/stress-test.js +++ b/test/stress-test.js @@ -40,8 +40,8 @@ describe('End-to-End Browser Tests', function () { const entryAmount = 100 const addr = orbiter.orbitdb.ipfs.libp2p.getMultiaddrs().shift() - console.log("start", addr) - for (let k = 1; k <= rounds; k ++) { + console.log('start', addr) + for (let k = 1; k <= rounds; k++) { let replicated = false // lander1 = await launchLander({ orbiterAddress: orbiterAddress1, directory: 'lander4' }) @@ -68,14 +68,13 @@ describe('End-to-End Browser Tests', function () { await orbiter.auth.add(lander2.orbitdb.identity.id) // lander2 = await launchLander({ orbiterAddress: orbiterAddress1, directory: 'lander5' }) - // console.time('pin2') // await lander2.pin(db1.address) // console.timeEnd('pin2') // console.time('replicate') // console.log("open", db1.address) - console.time('round ' + k + "/" + rounds) + console.time('round ' + k + '/' + rounds) const db2 = await lander2.orbitdb.open(db1.address) const onConnected = (peerId, heads) => { @@ -86,7 +85,7 @@ describe('End-to-End Browser Tests', function () { await waitFor(() => replicated, () => true) // console.timeEnd('replicate') - console.timeEnd('round ' + k + "/" + rounds) + console.timeEnd('round ' + k + '/' + rounds) const res = await db2.all()