Skip to content

Commit 41871f7

Browse files
committed
Remove watcher delay in tests
1 parent 5bedb4b commit 41871f7

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

test/lib/next-webdriver.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { debugPrint, getFullUrl, waitFor } from 'next-test-utils'
1+
import { debugPrint, getFullUrl } from 'next-test-utils'
22
import os from 'os'
33
import {
44
Playwright,
@@ -210,13 +210,5 @@ export default async function webdriver(
210210
debugPrint(`Hydration complete for ${fullUrl}`)
211211
}
212212

213-
// This is a temporary workaround for turbopack starting watching too late.
214-
// So we delay file changes to give it some time
215-
// to connect the WebSocket and start watching.
216-
// TODO: Is this still needed? Can we wait in a more useful way, like a socket connection event?
217-
if (process.env.IS_TURBOPACK_TEST && process.env.TURBOPACK_DEV) {
218-
debugPrint(`Waiting for for turbopack watcher to start`)
219-
await waitFor(1000)
220-
}
221213
return browser
222214
}

0 commit comments

Comments
 (0)