Skip to content

Commit

Permalink
chore: reduce ttl time for sorted-set tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rishtigupta committed Sep 10, 2024
1 parent 35b8c91 commit 7181df7
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions packages/common-integration-tests/src/cache/sorted-set.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {v4} from 'uuid';
import {
CacheDelete,
CacheItemGetTtl,
CacheSortedSetFetch,
CacheSortedSetGetRank,
CacheSortedSetGetScore,
Expand Down Expand Up @@ -110,14 +109,6 @@ export function runSortedSetTests(
});
expect((changeResponse as IResponseSuccess).is_success).toBeTrue();
await sleep(timeout * 1000);
const getItemTTLResponse = await cacheClient.itemGetTtl(
integrationTestCacheName,
sortedSetName
);
expectWithMessage(() => {
expect(getItemTTLResponse).toBeInstanceOf(CacheItemGetTtl.Miss);
}, `expected MISS but got ${getItemTTLResponse.toString()}`);

const getResponse = await cacheClient.sortedSetFetchByRank(
integrationTestCacheName,
sortedSetName
Expand Down Expand Up @@ -2304,7 +2295,7 @@ export function runSortedSetTests(
props.sortedSetName,
props.value,
props.score,
{ttl: props.ttl}
{ttl: CollectionTtl.of(30)}
);
};

Expand Down Expand Up @@ -2404,7 +2395,7 @@ export function runSortedSetTests(
props.cacheName,
props.sortedSetName,
new Map([[props.value, props.score]]),
{ttl: props.ttl}
{ttl: CollectionTtl.of(30)}
);
};

Expand Down

0 comments on commit 7181df7

Please sign in to comment.