Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fixed interplay with resource cache tests #3601

Merged
merged 11 commits into from
Jan 21, 2025
4 changes: 4 additions & 0 deletions .changeset/red-ligers-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

chore: fixed interplay with resource cache tests
6 changes: 6 additions & 0 deletions packages/account/src/providers/resource-cache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import { ResourceCache } from './resource-cache';
describe('Resource Cache', () => {
const randomValue = () => hexlify(randomBytes(32));

afterEach(() => {
// Reset the cache after each test
const resourceCache = new ResourceCache(1000);
resourceCache.clear();
});

it('can instantiate [valid numerical ttl]', () => {
const memCache = new ResourceCache(1000);

Expand Down
Loading