diff --git a/packages/api/tests/dwn-api.spec.ts b/packages/api/tests/dwn-api.spec.ts index 08663e149..defad0c1c 100644 --- a/packages/api/tests/dwn-api.spec.ts +++ b/packages/api/tests/dwn-api.spec.ts @@ -98,6 +98,11 @@ describe('DwnApi', () => { await delegateHarness.createAgentDid(); }); + after(async () => { + await delegateHarness.clearStorage(); + await delegateHarness.closeStorage(); + }); + beforeEach(async () => { sinon.restore(); await delegateHarness.syncStore.clear(); diff --git a/packages/api/tests/record.spec.ts b/packages/api/tests/record.spec.ts index 871324aff..29f94bd57 100644 --- a/packages/api/tests/record.spec.ts +++ b/packages/api/tests/record.spec.ts @@ -124,6 +124,11 @@ describe('Record', () => { await delegateHarness.createAgentDid(); }); + after(async () => { + await delegateHarness.clearStorage(); + await delegateHarness.closeStorage(); + }); + beforeEach(async () => { sinon.restore(); await delegateHarness.syncStore.clear();