Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
describe('ipfs-log - Replication (' + IPFS + ')', function () {
this.timeout(config.timeout)
let ipfs1, ipfs2, id1, id2, testIdentity, testIdentity2
const { identityKeyFixtures, signingKeyFixtures, identityKeysPath, signingKeysPath } = config
const ipfsConfig1 = Object.assign({}, config.daemon1, {
repo: config.daemon1.repo + new Date().getTime()
})
const ipfsConfig2 = Object.assign({}, config.daemon2, {
repo: config.daemon2.repo + new Date().getTime()
})
let keystore, signingKeystore
before(async () => {
rmrf.sync(ipfsConfig1.repo)
rmrf.sync(ipfsConfig2.repo)
rmrf.sync(identityKeysPath)
rmrf.sync(signingKeysPath)
await fs.copy(identityKeyFixtures, identityKeysPath)
await fs.copy(signingKeyFixtures, signingKeysPath)
describe('ipfs-log - Replication (' + IPFS + ')', function () {
this.timeout(config.timeout)
let ipfs1, ipfs2, id1, id2, testIdentity, testIdentity2
const { identityKeyFixtures, signingKeyFixtures, identityKeysPath, signingKeysPath } = config
const ipfsConfig1 = Object.assign({}, config.daemon1, {
repo: config.daemon1.repo + new Date().getTime()
})
const ipfsConfig2 = Object.assign({}, config.daemon2, {
repo: config.daemon2.repo + new Date().getTime()
})
let keystore, signingKeystore
before(async () => {
rmrf.sync(ipfsConfig1.repo)
rmrf.sync(ipfsConfig2.repo)
rmrf.sync(identityKeysPath)
rmrf.sync(signingKeysPath)
await fs.copy(identityKeyFixtures, identityKeysPath)
await fs.copy(signingKeyFixtures, signingKeysPath)