Skip to content

Commit

Permalink
fix: open and close blockstore during interface tests (#188)
Browse files Browse the repository at this point in the history
Store needs to be opened and closed.
  • Loading branch information
achingbrain committed Mar 13, 2023
1 parent d55ad7c commit a61a54b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/interface-blockstore-tests/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ export function interfaceBlockstoreTests (test: { teardown: () => void, setup: (

beforeEach(async () => {
store = await createStore()
await store.open()
})

afterEach(async () => { await cleanup(store) })
afterEach(async () => {
await store.close()
await cleanup(store)
})

it('simple', async () => {
const { key, value } = await getKeyValuePair()
Expand Down

0 comments on commit a61a54b

Please sign in to comment.