Skip to content

Commit 656c709

Browse files
authored
add timeout in revalidatePath test as locally can run too fast (#771)
1 parent 7e23eee commit 656c709

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/tests-e2e/tests/appRouter/revalidateTag.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ test("Revalidate path", async ({ page, request }) => {
7979
elLayout = page.getByText("Date:");
8080
const initialDate = await elLayout.textContent();
8181

82+
// Wait so that enough time passes for the data on the page to update when revalidating
83+
await page.waitForTimeout(2000);
84+
8285
// Send revalidate path request
8386
const result = await request.get("/api/revalidate-path");
8487
expect(result.status()).toEqual(200);

0 commit comments

Comments
 (0)