mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
feat: Upgrade ccrypto.
This commit is contained in:
@@ -11,7 +11,7 @@ import createHelia from '../../utils/create-helia.js'
|
||||
const keysPath = './testkeys'
|
||||
|
||||
describe('Documents Database Replication', function () {
|
||||
this.timeout(30000)
|
||||
this.timeout(10000)
|
||||
|
||||
let ipfs1, ipfs2
|
||||
let keystore
|
||||
@@ -31,6 +31,18 @@ describe('Documents Database Replication', function () {
|
||||
|
||||
before(async () => {
|
||||
[ipfs1, ipfs2] = await Promise.all([createHelia(), createHelia()])
|
||||
|
||||
ipfs1.libp2p.addEventListener("peer:connect", (event) => {
|
||||
console.log(event.detail.toString())
|
||||
})
|
||||
|
||||
ipfs2.libp2p.addEventListener("peer:connect", (event) => {
|
||||
console.log(event.detail.toString())
|
||||
})
|
||||
|
||||
console.log(ipfs1.libp2p.peerId.toString())
|
||||
console.log(ipfs2.libp2p.peerId.toString())
|
||||
|
||||
await connectPeers(ipfs1, ipfs2)
|
||||
|
||||
await copy(testKeysPath, keysPath)
|
||||
|
||||
Reference in New Issue
Block a user