From e1a6918d289342a2e6c58b62012a65527a0b0892 Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Wed, 4 Sep 2024 16:50:59 -0400 Subject: [PATCH] update tests --- packages/api/tests/dwn-api.spec.ts | 5 +++++ packages/api/tests/record.spec.ts | 5 +++++ 2 files changed, 10 insertions(+) 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();