cleaning up setTimeouts

This commit is contained in:
Mark Henderson 2020-05-18 11:16:53 -04:00 committed by Mark Robert Henderson
parent 572029bbe7
commit 4d7bfa11b8
2 changed files with 6 additions and 11 deletions

View File

@ -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() {

View File

@ -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() {