From 21bf3ddaf23c842dc12a1d76dbd3b48daf08f349 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sat, 12 Nov 2022 18:30:12 -0800 Subject: Redo how we poll pipes (#1496) * Fix pipe * Handle unregistered * Fix failing test --- test/bun.js/streams.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/bun.js/streams.test.js') diff --git a/test/bun.js/streams.test.js b/test/bun.js/streams.test.js index c6d69ab08..75ac964ca 100644 --- a/test/bun.js/streams.test.js +++ b/test/bun.js/streams.test.js @@ -218,7 +218,8 @@ it("Bun.file() read text from pipe", async () => { mkfifo("/tmp/fifo", 0o666); - const large = "HELLO!".repeat((((1024 * 512) / "HELLO!".length) | 0) + 1); + // 65k so its less than the max on linux + const large = "HELLO!".repeat((((1024 * 65) / "HELLO!".length) | 0) + 1); const chunks = []; var out = Bun.file("/tmp/fifo").stream(); -- cgit v1.2.3