Skip to content

Commit

Permalink
Fix HooksRepository open handle
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorgomezv committed Oct 3, 2024
1 parent 0b8a6ae commit 00b3445
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/domain/hooks/hooks.repository.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ describe('HooksRepository (Unit)', () => {
});
// cache should be cleared after logging
await expect(fakeCacheService.getCounter(cacheKey)).resolves.toBeNull();
eventCacheHelper.onModuleDestroy();
});
});

Expand Down Expand Up @@ -414,6 +415,7 @@ describe('HooksRepositoryWithNotifications (Unit)', () => {
});
// cache should be cleared after logging
await expect(fakeCacheService.getCounter(cacheKey)).resolves.toBeNull();
eventCacheHelper.onModuleDestroy();
});

it('should store the unsupported chain events for several chains and log them after UNSUPPORTED_EVENTS_LOG_INTERVAL', async () => {
Expand Down Expand Up @@ -467,5 +469,6 @@ describe('HooksRepositoryWithNotifications (Unit)', () => {
// cache should be cleared after logging
await expect(fakeCacheService.getCounter(cacheKeys[0])).resolves.toBeNull();
await expect(fakeCacheService.getCounter(cacheKeys[1])).resolves.toBeNull();
eventCacheHelper.onModuleDestroy();
});
});

0 comments on commit 00b3445

Please sign in to comment.