diff --git a/tests/corpus/6809-node-island-stdio/main.ts b/tests/corpus/6809-node-island-stdio/main.ts index 209dda8a5..90af5e253 100644 --- a/tests/corpus/6809-node-island-stdio/main.ts +++ b/tests/corpus/6809-node-island-stdio/main.ts @@ -10,12 +10,14 @@ process.stdout.write("native write 1\n"); console.error("native error 1"); callSync("./stdio.cjs", "big", 200000); process.stdout.write(`${"n".repeat(200000)}\n`); -callSync("./stdio.cjs", "later", 5); +// The island timer (50 ms) and the native timer (100 ms) are due well +// after this script and the immediates finish, on a loaded host too. +callSync("./stdio.cjs", "later", 50); setTimeout(() => { console.log("native timer log"); callSync("./stdio.cjs", "write", "2"); console.error("native timer error"); -}, 10); +}, 100); setImmediate(() => console.log("native immediate log")); process.on("exit", () => console.log("native exit listener log")); console.log("native log 2");