mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-12 09:06:43 +00:00
cleaning up setTimeouts
This commit is contained in:
parent
572029bbe7
commit
4d7bfa11b8
@ -44,12 +44,9 @@ Object.keys(testAPIs).forEach(API => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
after(() => {
|
after(async () => {
|
||||||
// FIXME: shim to wait until the end of the event loop to call this
|
await orbitdb1.stop()
|
||||||
setTimeout(async () => {
|
await stopIpfs(ipfsd)
|
||||||
await orbitdb1.stop()
|
|
||||||
await stopIpfs(ipfsd)
|
|
||||||
}, 0)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('allows orbit to use a custom cache with different store types', function() {
|
describe('allows orbit to use a custom cache with different store types', function() {
|
||||||
|
@ -42,11 +42,9 @@ Object.keys(testAPIs).forEach(API => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
after(() => {
|
after(async () => {
|
||||||
setTimeout(async () => {
|
await orbitdb1.stop()
|
||||||
await orbitdb1.stop()
|
await stopIpfs(ipfsd)
|
||||||
await stopIpfs(ipfsd)
|
|
||||||
}, 0)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('allows orbit to use a custom keystore with different store types', function() {
|
describe('allows orbit to use a custom keystore with different store types', function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user