Skip to content

Commit

Permalink
test: lower delay before revalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
lubieowoce committed Sep 26, 2024
1 parent 1a6618a commit 3f68bf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function revalidateTimestampPage(/** @type {string} */ key) {
revalidatePath(path)
}

const WAIT_BEFORE_REVALIDATING_DEFAULT = 5000
const WAIT_BEFORE_REVALIDATING_DEFAULT = 1000

function getSleepDuration() {
const raw = process.env.WAIT_BEFORE_REVALIDATING
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/app-dir/next-after-app-deploy/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-env jest */
import { nextTestSetup, isNextDev, isNextDeploy } from 'e2e-utils'
import { nextTestSetup, isNextDev } from 'e2e-utils'
import { retry } from 'next-test-utils'

const runtimes = ['nodejs', 'edge']

const WAIT_BEFORE_REVALIDATING = isNextDeploy ? 10_000 : 5_000
const WAIT_BEFORE_REVALIDATING = 1000

// If we want to verify that `unstable_after()` ran its callback,
// we need it to perform some kind of side effect (because it can't affect the response).
Expand Down

0 comments on commit 3f68bf0

Please sign in to comment.