summaryrefslogtreecommitdiff
path: root/cli/js/tests/read_file_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-04-15 20:43:19 -0400
committerGitHub <noreply@github.com>2020-04-15 20:43:19 -0400
commitfab0204cbf20cc1be7874266325bf258fe0ecaca (patch)
treec67b3febde254ea36122966aadf13dfb62b67a0e /cli/js/tests/read_file_test.ts
parent7cfd094359f7f94573b084328ad1a956dd70005d (diff)
Make writeSync, readSync, seekSync, openSync, isatty proper synchronous syscalls (#4762)
Diffstat (limited to 'cli/js/tests/read_file_test.ts')
-rw-r--r--cli/js/tests/read_file_test.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/js/tests/read_file_test.ts b/cli/js/tests/read_file_test.ts
index 1b709b1f4..0d3cdf422 100644
--- a/cli/js/tests/read_file_test.ts
+++ b/cli/js/tests/read_file_test.ts
@@ -57,3 +57,9 @@ unitTest({ perms: { read: false } }, async function readFilePerm(): Promise<
}
assert(caughtError);
});
+
+unitTest({ perms: { read: true } }, function readFileSyncLoop(): void {
+ for (let i = 0; i < 256; i++) {
+ Deno.readFileSync("cli/tests/fixture.json");
+ }
+});