From fab0204cbf20cc1be7874266325bf258fe0ecaca Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 15 Apr 2020 20:43:19 -0400 Subject: Make writeSync, readSync, seekSync, openSync, isatty proper synchronous syscalls (#4762) --- cli/js/tests/read_file_test.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/js/tests/read_file_test.ts') 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"); + } +}); -- cgit v1.2.3