Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/sequential/test-watch-mode-restart-esm-loading-error.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function runInBackground({ args = [], options = {}, completed = 'Completed runni
future.resolve();
return { stdout, stderr };
},
restart(timeout = 1000) {
restart(timeout = common.platformTimeout(10_000)) {
if (!child) {
run();
}
Expand Down Expand Up @@ -113,7 +113,7 @@ try {

// Update file with syntax error
const syntaxErrorContent = `console.log('hello, wor`;
const failedRestart = restart(common.platformTimeout(10_000));
const failedRestart = restart();
writeFileSync(file, syntaxErrorContent);
await sleep(common.platformTimeout(1000));
// Wait for the failed restart
Expand All @@ -125,7 +125,7 @@ try {
`Failed running ${inspect(file)}. Waiting for file changes before restarting...`,
]);

const successfulRestart = restart(common.platformTimeout(10_000));
const successfulRestart = restart();
writeFileSync(file, `console.log('hello again, world');`);
await sleep(common.platformTimeout(1000));
const { stderr: stderr3, stdout: stdout3 } = await successfulRestart;
Expand Down
Loading