Skip to content

Commit 4c5fa1d

Browse files
authored
test: add missing await for hydration test (vercel#74542)
1 parent 3b37d6b commit 4c5fa1d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/development/acceptance-app/hydration-error.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,9 @@ describe('Error overlay for hydration errors in App router', () => {
624624
const { session, browser } = sandbox
625625
await session.openRedbox()
626626

627-
expect(await getRedboxTotalErrorCount(browser)).toBe(2)
627+
await retry(async () => {
628+
expect(await getRedboxTotalErrorCount(browser)).toBe(2)
629+
})
628630

629631
const description = await session.getRedboxDescription()
630632
expect(description).toContain(
@@ -786,7 +788,7 @@ describe('Error overlay for hydration errors in App router', () => {
786788
const { session, browser } = sandbox
787789
await session.openRedbox()
788790

789-
retry(async () => {
791+
await retry(async () => {
790792
expect(await getRedboxTotalErrorCount(browser)).toBe(4)
791793
})
792794

0 commit comments

Comments
 (0)