From 88241f5cd12d9e69ddc7e36a4ff44e35923e9fdc Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 6 Dec 2023 05:56:24 +0800 Subject: [PATCH] test: bump router test time range fix https://github.com/DIYgod/RSSHub/actions/runs/7104681085/job/19340228876 --- test/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/router.js b/test/router.js index 26bead6e58d2f8..91c1db2d1435fc 100644 --- a/test/router.js +++ b/test/router.js @@ -17,7 +17,7 @@ async function checkRSS(response) { expect(date).toEqual(expect.any(String)); expect(Date.parse(date)).toEqual(expect.any(Number)); expect(new Date() - new Date(date)).toBeGreaterThan(-1000 * 60 * 60 * 24 * 5); - expect(new Date() - new Date(date)).toBeLessThan(1000 * 60 * 60 * 24 * 30 * 12 * 5); + expect(new Date() - new Date(date)).toBeLessThan(1000 * 60 * 60 * 24 * 30 * 12 * 10); }; const parsed = await parser.parseString(response.text);