aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/spawn-streaming-stdout-repro.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/bun.js/spawn-streaming-stdout-repro.js')
-rw-r--r--test/bun.js/spawn-streaming-stdout-repro.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/bun.js/spawn-streaming-stdout-repro.js b/test/bun.js/spawn-streaming-stdout-repro.js
index 7279574bf..3976ff095 100644
--- a/test/bun.js/spawn-streaming-stdout-repro.js
+++ b/test/bun.js/spawn-streaming-stdout-repro.js
@@ -1,3 +1,5 @@
+var writer = Bun.stdout.writer();
setInterval(() => {
- console.log("Wrote to stdout");
+ writer.write("Wrote to stdout\n");
+ writer.flush();
}, 20);