mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-18 22:40:07 +00:00
fix SkRateLimiterService tests
This commit is contained in:
parent
1377873b1d
commit
72d18602d8
1 changed files with 2 additions and 2 deletions
|
@ -908,7 +908,7 @@ describe(SkRateLimiterService, () => {
|
|||
|
||||
await serviceUnderTest().limit(limit, actor);
|
||||
|
||||
expect(commands).toContainEqual(['expire', 'rl_actor_test_c', 1]);
|
||||
expect(commands).toContainEqual(['expire', 'rl_actor_test_c', 5]);
|
||||
});
|
||||
|
||||
it('should set timestamp expiration', async () => {
|
||||
|
@ -920,7 +920,7 @@ describe(SkRateLimiterService, () => {
|
|||
|
||||
await serviceUnderTest().limit(limit, actor);
|
||||
|
||||
expect(commands).toContainEqual(['expire', 'rl_actor_test_t', 1]);
|
||||
expect(commands).toContainEqual(['expire', 'rl_actor_test_t', 5]);
|
||||
});
|
||||
|
||||
it('should not increment when already blocked', async () => {
|
||||
|
|
Loading…
Reference in a new issue