diff options
Diffstat (limited to 'cli/tests/unit')
-rw-r--r-- | cli/tests/unit/buffer_test.ts | 4 | ||||
-rw-r--r-- | cli/tests/unit/dispatch_json_test.ts | 20 |
2 files changed, 2 insertions, 22 deletions
diff --git a/cli/tests/unit/buffer_test.ts b/cli/tests/unit/buffer_test.ts index 7a628cae5..999680be7 100644 --- a/cli/tests/unit/buffer_test.ts +++ b/cli/tests/unit/buffer_test.ts @@ -329,9 +329,9 @@ unitTest(async function bufferReadFromSync(): Promise<void> { unitTest(async function bufferTestGrow(): Promise<void> { const tmp = new Uint8Array(72); - for (const startLen of [0, 100, 1000, 10000, 100000]) { + for (const startLen of [0, 100, 1000, 10000]) { const xBytes = repeat("x", startLen); - for (const growLen of [0, 100, 1000, 10000, 100000]) { + for (const growLen of [0, 100, 1000, 10000]) { const buf = new Deno.Buffer(xBytes.buffer as ArrayBuffer); // If we read, this affects buf.off, which is good to test. const nread = (await buf.read(tmp)) ?? 0; diff --git a/cli/tests/unit/dispatch_json_test.ts b/cli/tests/unit/dispatch_json_test.ts index 076c9e6f8..29127a85c 100644 --- a/cli/tests/unit/dispatch_json_test.ts +++ b/cli/tests/unit/dispatch_json_test.ts @@ -2,28 +2,8 @@ import { assertStrictEquals, unitTest, assertMatch, - unreachable, } from "./test_util.ts"; -const openErrorStackPattern = new RegExp( - `^.* - at unwrapResponse \\(.*dispatch_json\\.js:.*\\) - at sendAsync \\(.*dispatch_json\\.js:.*\\) - at async Object\\.open \\(.*files\\.js:.*\\).*$`, - "ms", -); - -unitTest( - { perms: { read: true } }, - async function sendAsyncStackTrace(): Promise<void> { - await Deno.open("nonexistent.txt") - .then(unreachable) - .catch((error): void => { - assertMatch(error.stack, openErrorStackPattern); - }); - }, -); - declare global { // eslint-disable-next-line @typescript-eslint/no-namespace namespace Deno { |