Skip to content

Commit

Permalink
close base and store concurrently
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Jun 14, 2024
1 parent 0631593 commit 35e9c5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ function createBase (store, key, t, opts = {}) {
}

t.teardown(async () => {
await base.close().catch(() => {})
await base._viewStore.close().catch(() => {})
return Promise.all([
base.close().catch(() => {}),
base._viewStore.close().catch(() => {})
])
}, { order: 1 })

return base
Expand Down

0 comments on commit 35e9c5d

Please sign in to comment.