Skip to content

Commit a61a54b

Browse files
authored
fix: open and close blockstore during interface tests (#188)
Store needs to be opened and closed.
1 parent d55ad7c commit a61a54b

File tree

1 file changed

+5
-1
lines changed
  • packages/interface-blockstore-tests/src

1 file changed

+5
-1
lines changed

packages/interface-blockstore-tests/src/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ export function interfaceBlockstoreTests (test: { teardown: () => void, setup: (
4545

4646
beforeEach(async () => {
4747
store = await createStore()
48+
await store.open()
4849
})
4950

50-
afterEach(async () => { await cleanup(store) })
51+
afterEach(async () => {
52+
await store.close()
53+
await cleanup(store)
54+
})
5155

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

0 commit comments

Comments
 (0)