Fix replication status test name

This commit is contained in:
haad 2018-03-31 12:35:29 +02:00
parent 4ad897920f
commit 9504b18a0b

View File

@ -23,7 +23,7 @@ const dbPath2 = './orbitdb/tests/create-open/2'
const ipfsPath = './orbitdb/tests/create-open/ipfs' const ipfsPath = './orbitdb/tests/create-open/ipfs'
Object.keys(testAPIs).forEach(API => { Object.keys(testAPIs).forEach(API => {
describe(`orbit-db - Load (${API})`, function() { describe(`orbit-db - Replication Status (${API})`, function() {
this.timeout(config.timeout) this.timeout(config.timeout)
let ipfsd, ipfs, orbitdb1, orbitdb2, db, address let ipfsd, ipfs, orbitdb1, orbitdb2, db, address
@ -38,6 +38,7 @@ Object.keys(testAPIs).forEach(API => {
ipfs = ipfsd.api ipfs = ipfsd.api
orbitdb1 = new OrbitDB(ipfs, dbPath1) orbitdb1 = new OrbitDB(ipfs, dbPath1)
orbitdb2 = new OrbitDB(ipfs, dbPath2) orbitdb2 = new OrbitDB(ipfs, dbPath2)
db = await orbitdb1.log('replication status tests')
}) })
after(async () => { after(async () => {
@ -51,11 +52,6 @@ Object.keys(testAPIs).forEach(API => {
await stopIpfs(ipfsd) await stopIpfs(ipfsd)
}) })
describe('Replication Status', function() {
before(async () => {
db = await orbitdb1.log('replication status tests')
})
it('has correct initial state', async () => { it('has correct initial state', async () => {
assert.deepEqual(db.replicationStatus, { buffered: 0, queued: 0, progress: 0, max: 0 }) assert.deepEqual(db.replicationStatus, { buffered: 0, queued: 0, progress: 0, max: 0 })
}) })
@ -100,4 +96,3 @@ Object.keys(testAPIs).forEach(API => {
}) })
}) })
}) })
})