Skip to content

Commit 31dcaa4

Browse files
committed
fix: readme
1 parent dfb69c8 commit 31dcaa4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ The integration tests will start a Next.js server and test the caching handler.
188188
- SKIP_OPTIONAL_LONG_RUNNER_TESTS: If set to true, the integration tests will not run the optional long runner tests.
189189
- DEBUG_INTEGRATION: If set to true, the integration tests will print debug information of the test itself to the console.
190190

191+
Integration tests may have dependencies between test cases, so individual test failures should be evaluated in the context of the full test suite rather than in isolation.
192+
191193
## Some words on nextjs caching internals
192194

193195
Nextjs will use different caching objects for different pages and api routes. Currently supported are kind: APP_ROUTE and APP_PAGE.

test/integration/nextjs-cache-handler.integration.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ describe('Next.js Turbo Redis Cache Integration', () => {
415415
});
416416

417417
it('A new request after the revalidation should increment the counter (because the route was re-evaluated)', async () => {
418+
await delay(200);
418419
const res = await fetch(
419420
NEXT_START_URL +
420421
'/api/nested-fetch-in-api-route/revalidated-fetch',
@@ -540,7 +541,7 @@ describe('Next.js Turbo Redis Cache Integration', () => {
540541
process.env.VERCEL_URL + '/pages/no-fetch/default-page',
541542
);
542543
// 14 days is default revalidate for pages -> expiration time is 2 * revalidate time -> -10 seconds for testing offset stability
543-
expect(ttl).toBeGreaterThan(2 * 14 * 24 * 60 * 60 - 10);
544+
expect(ttl).toBeGreaterThan(2 * 14 * 24 * 60 * 60 - 30);
544545
});
545546

546547
it('The data in the redis key should match the expected format', async () => {

0 commit comments

Comments
 (0)