Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
test: set flush option
  • Loading branch information
pmarchini committed Sep 24, 2024
commit e654e80a7d4071e7b29e39fc5f0c70d83e6c7fa1
4 changes: 2 additions & 2 deletions test/parallel/test-runner-watch-mode-complex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const fixturePaths = Object.fromEntries(Object.keys(fixtureContent)

async function setupFixtures() {
return Promise.all(Object.entries(fixtureContent)
.map(([file, content]) => writeFile(fixturePaths[file], content)));
.map(([file, content]) => writeFile(fixturePaths[file], content, { flush: true })));
}

await setupFixtures();
Comment thread
pmarchini marked this conversation as resolved.
Expand Down Expand Up @@ -86,7 +86,7 @@ describe('test runner watch mode with more complex setup', () => {

const content = fixtureContent['dependency.mjs'];
const path = fixturePaths['dependency.mjs'];
await writeFile(path, content);
await writeFile(path, content, { flush: true });
await setTimeout(common.platformTimeout(1000));
await ran2.promise;
runs.push(currentRun);
Expand Down