diff options
| author | 2022-11-23 07:14:33 -0800 | |
|---|---|---|
| committer | 2022-11-23 07:14:33 -0800 | |
| commit | ac36ea51cfb85130403ac09299f8e1207bad4bcb (patch) | |
| tree | a05bc2d34295bc0087b68b799155f18050451721 /test/bun.js/filesink.test.ts | |
| parent | ae3fcb5bd89a4ac908ba6d4cdb1be4e7c7f0ea81 (diff) | |
| download | bun-ac36ea51cfb85130403ac09299f8e1207bad4bcb.tar.gz bun-ac36ea51cfb85130403ac09299f8e1207bad4bcb.tar.zst bun-ac36ea51cfb85130403ac09299f8e1207bad4bcb.zip | |
possibly more reliable Bun.spawn (#1547)
* wip
* wip
* Fix bug with stdin
* zig fmt
* seems to work!
* Update streams.test.js
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to '')
| -rw-r--r-- | test/bun.js/filesink.test.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/bun.js/filesink.test.ts b/test/bun.js/filesink.test.ts index 038e8df19..a04144d0b 100644 --- a/test/bun.js/filesink.test.ts +++ b/test/bun.js/filesink.test.ts @@ -91,7 +91,7 @@ describe("FileSink", () => { } return Buffer.concat(chunks).toString(); // test it on a small chunk size - })(Bun.file(path).stream(4)); + })(Bun.file(path).stream(64)); return path; } @@ -106,6 +106,7 @@ describe("FileSink", () => { for (let i = 0; i < input.length; i++) { sink.write(input[i]); } + console.log("close", input[0].length); await sink.end(); if (!isPipe) { @@ -115,6 +116,7 @@ describe("FileSink", () => { } expect(output.byteLength).toBe(expected.byteLength); } else { + console.log("reading"); const output = await activeFIFO; expect(output).toBe(decoder.decode(expected)); } |
