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