From 3cc724c9bae94c2f79dd4a902782a66f688a1e61 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 22 Nov 2021 16:53:58 +0100 Subject: fix(runtime): support reading /proc using readFile (#12839) --- cli/tests/unit/read_file_test.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'cli/tests/unit/read_file_test.ts') diff --git a/cli/tests/unit/read_file_test.ts b/cli/tests/unit/read_file_test.ts index 9b8f5e6df..90a6abc2c 100644 --- a/cli/tests/unit/read_file_test.ts +++ b/cli/tests/unit/read_file_test.ts @@ -105,15 +105,10 @@ unitTest( ); unitTest( - { permissions: { read: true } }, - async function readTextileWithAbortSignal() { - const ac = new AbortController(); - queueMicrotask(() => ac.abort()); - await assertRejects(async () => { - await Deno.readTextFile("cli/tests/testdata/fixture.json", { - signal: ac.signal, - }); - }); + { permissions: { read: true }, ignore: Deno.build.os !== "linux" }, + async function readFileProcFs() { + const data = await Deno.readFile("/proc/self/stat"); + assert(data.byteLength > 0); }, ); -- cgit v1.2.3