From 52fb6582e7121a6c253c83b95e9706d236262cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 29 Aug 2024 01:09:06 +0100 Subject: test: run `node_unit_tests` with `DENO_FUTURE=1` (#25285) This is blocking https://github.com/denoland/deno/pull/25213. Turns out a bunch of FS APIs are completely broken because they use RIDs (resource IDs) instead of FDs (file descriptors). --- tests/unit_node/_fs/_fs_appendFile_test.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/unit_node/_fs/_fs_appendFile_test.ts') diff --git a/tests/unit_node/_fs/_fs_appendFile_test.ts b/tests/unit_node/_fs/_fs_appendFile_test.ts index f50eba856..3ee04c1f4 100644 --- a/tests/unit_node/_fs/_fs_appendFile_test.ts +++ b/tests/unit_node/_fs/_fs_appendFile_test.ts @@ -64,6 +64,9 @@ Deno.test({ Deno.test({ name: "Async: Data is written to passed in rid", + // TODO(bartlomieju): this test is broken in Deno 2, because `file.rid` is undefined. + // The fs APIs should be rewritten to use actual FDs, not RIDs + ignore: true, async fn() { const tempFile: string = await Deno.makeTempFile(); using file = await Deno.open(tempFile, { @@ -153,6 +156,9 @@ Deno.test({ Deno.test({ name: "Sync: Data is written to passed in rid", + // TODO(bartlomieju): this test is broken in Deno 2, because `file.rid` is undefined. + // The fs APIs should be rewritten to use actual FDs, not RIDs + ignore: true, fn() { const tempFile: string = Deno.makeTempFileSync(); using file = Deno.openSync(tempFile, { -- cgit v1.2.3