aboutsummaryrefslogtreecommitdiff
path: root/test/js/node/fs/fs.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/node/fs/fs.test.ts')
-rw-r--r--test/js/node/fs/fs.test.ts6
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");