Skip to content

Commit

Permalink
clear storage to avoid race conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Aug 8, 2024
1 parent 214e3fb commit fd5fe7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/agent/tests/dwn-api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ describe('AgentDwnApi', () => {
});
});

afterEach(() => {
beforeEach(() => {
sinon.restore();
});

after(async () => {
sinon.restore();
await testHarness.clearStorage();
await testHarness.closeStorage();
});

Expand Down

0 comments on commit fd5fe7f

Please sign in to comment.