Skip to content

Commit 378e501

Browse files
test(native-watcher): pad watcher warmup on windows
1 parent 3152c63 commit 378e501

File tree

1 file changed

+1
-1
lines changed
  • packages/rspack-test-tools/src/case

1 file changed

+1
-1
lines changed

packages/rspack-test-tools/src/case/watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export function createWatchStepProcessor(
294294
// which will cause the compiler not rebuild when the files change.
295295
// The timeout is set to 400ms for windows OS and 100ms for other OS.
296296
// TODO: This is a workaround, we can remove it when notify support windows better.
297-
const timeout = nativeWatcher && process.platform === "win32" ? 400 : 100;
297+
const timeout = nativeWatcher && process.platform === "win32" ? 4000 : 100;
298298
await new Promise(resolve => setTimeout(resolve, timeout));
299299
copyDiff(path.join(context.getSource(), step), tempDir, false);
300300
await task;

0 commit comments

Comments
 (0)