diff options
author | 2023-09-07 07:45:00 -0700 | |
---|---|---|
committer | 2023-09-07 07:45:00 -0700 | |
commit | 36e5a072a94805d5644081052391860e2b51f710 (patch) | |
tree | 861b4ddc665e28ba321dd5ded17c29371b3358c5 /test/js/node/fs | |
parent | 57a06745a48093c25d0f4729ccea41a918d6427d (diff) | |
download | bun-36e5a072a94805d5644081052391860e2b51f710.tar.gz bun-36e5a072a94805d5644081052391860e2b51f710.tar.zst bun-36e5a072a94805d5644081052391860e2b51f710.zip |
revert (#4539)
* Revert "remove native events from streams"
This reverts commit e063a47a53744a2bf5b1c2dd433698c9e37b75d6.
* finish revert
* remove accidental submodule
* dfghj
Diffstat (limited to 'test/js/node/fs')
-rw-r--r-- | test/js/node/fs/fs.test.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/js/node/fs/fs.test.ts b/test/js/node/fs/fs.test.ts index 0578e0fc7..4cfe93dc9 100644 --- a/test/js/node/fs/fs.test.ts +++ b/test/js/node/fs/fs.test.ts @@ -2025,11 +2025,7 @@ it("BigIntStats", () => { it("test syscall errno, issue#4198", () => { const path = `${tmpdir()}/non-existent-${Date.now()}.txt`; expect(() => openSync(path, "r")).toThrow("No such file or directory"); - if (process.platform == "darwin") { - expect(() => readSync(2147483640, Buffer.alloc(0))).toThrow("Bad file descriptor"); - } else { - expect(() => readSync(2147483640, Buffer.alloc(0))).toThrow("Bad file number"); - } + expect(() => readSync(2147483640, Buffer.alloc(0))).toThrow("Bad file descriptor"); expect(() => readlinkSync(path)).toThrow("No such file or directory"); expect(() => realpathSync(path)).toThrow("No such file or directory"); expect(() => readFileSync(path)).toThrow("No such file or directory"); |