Skip to content

Commit

Permalink
style: Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenyoung committed Oct 31, 2024
1 parent 91cdfab commit 5cad164
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/stress-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand All @@ -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) => {
Expand All @@ -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()

Expand Down

0 comments on commit 5cad164

Please sign in to comment.