Skip to content

Commit 9b556b8

Browse files
committed
test: adjust expiry times
1 parent 1dc34c1 commit 9b556b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/cbjs/tests/kv.touch.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe.shuffle('kv touch', async () => {
6060

6161
test(
6262
'should touch and get a document successfully',
63-
{ timeout: 15_000 },
63+
{ timeout: 15_000, retry: 2 },
6464
async function ({ serverTestContext, expect, testDocKey, testDocContent }) {
6565
// Insert a test document
6666
const res = await serverTestContext.collection.insert(testDocKey, testDocContent, {
@@ -90,7 +90,7 @@ describe.shuffle('kv touch', async () => {
9090
await serverTestContext.collection.get(testDocKey);
9191

9292
// Check the key has expired
93-
await sleep(5000);
93+
await sleep(6000);
9494
await expect(serverTestContext.collection.get(testDocKey)).rejects.toThrowError();
9595
}
9696
);

0 commit comments

Comments
 (0)