diff options
Diffstat (limited to 'cli/tests/unit/read_file_test.ts')
-rw-r--r-- | cli/tests/unit/read_file_test.ts | 13 |
1 files changed, 4 insertions, 9 deletions
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); }, ); |