Skip to content

Commit

Permalink
chore: fixed interplay with resource cache tests (#3601)
Browse files Browse the repository at this point in the history
* fix: incorrect offset

* chore: debug test

* chore: enable `allowOnly`

* chore: only run select node versions

* chore: enable all tests

* chore: revert workflow

* chore: ensure no interplay

* chore: removed debug

* chore: changeset

* Update packages/account/src/providers/resource-cache.test.ts
  • Loading branch information
petertonysmith94 authored Jan 21, 2025
1 parent 8e5ce4e commit 79ffb82
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit 79ffb82

Please sign in to comment.