Skip to content

Commit

Permalink
fix(notifer): notifier redisHelpers tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed Feb 2, 2025
1 parent 0cb1d65 commit 13cbd8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workers/notifier/tests/redisHelper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('RedisHelper', () => {
jest.spyOn(global.Date, 'now').mockImplementation(() => currentDate + 2 * thresholdPeriod + 1);

const currentEventCount = await redisHelper.computeEventCountForPeriod(projectId, ruleId, groupHash, thresholdPeriod);
const currentlyStoredTimestamp = await redisClient.hGet(`${ruleId}:${groupHash}:${thresholdPeriod}`, 'timestamp');
const currentlyStoredTimestamp = await redisClient.hGet(`${projectId}:${ruleId}:${groupHash}:${thresholdPeriod}`, 'timestamp');

expect(currentEventCount).toBe(1);
expect(currentlyStoredTimestamp).toBe(Date.now().toString());
Expand Down

0 comments on commit 13cbd8b

Please sign in to comment.