mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
Fix replication status test name
This commit is contained in:
parent
4ad897920f
commit
9504b18a0b
@ -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 })
|
||||||
})
|
})
|
||||||
@ -99,5 +95,4 @@ Object.keys(testAPIs).forEach(API => {
|
|||||||
assert.deepEqual(db.replicationStatus, { buffered: 0, queued: 0, progress: 2, max: 2 })
|
assert.deepEqual(db.replicationStatus, { buffered: 0, queued: 0, progress: 2, max: 2 })
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user