We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 381236f commit 714d2a7Copy full SHA for 714d2a7
src/_tests/cache.test.ts
@@ -66,7 +66,8 @@ describe("Cache", () => {
66
67
it("should expire after 300ms", async () => {
68
caches.default.set("test", "test", 300);
69
- await sleep(300);
+ // wait for 305ms to ensure the cache is expired
70
+ await sleep(305);
71
expect(caches.default.get("test")).toBeNull();
72
caches.default.clear();
73
});
0 commit comments