diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2022-03-12 01:18:49 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-12 01:18:49 +0900 |
commit | b198bfd7950ce3f20aeaef265be59ff038fc4e11 (patch) | |
tree | 4be0fc3266d6507504eb2fdf8164a12b182d4acb /cli/tests/unit/timers_test.ts | |
parent | f9b4d262b307649966b6433c72a9ee2b57bde8f7 (diff) |
refactor(core): validate promise id in refOp (#13905)
Diffstat (limited to 'cli/tests/unit/timers_test.ts')
-rw-r--r-- | cli/tests/unit/timers_test.ts | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/cli/tests/unit/timers_test.ts b/cli/tests/unit/timers_test.ts index e85a2effc..ac0403bf7 100644 --- a/cli/tests/unit/timers_test.ts +++ b/cli/tests/unit/timers_test.ts @@ -6,11 +6,10 @@ import { Deferred, deferred, delay, + execCode, unreachable, } from "./test_util.ts"; -const decoder = new TextDecoder(); - Deno.test(async function functionParameterBindingSuccess() { const promise = deferred(); let count = 0; @@ -578,21 +577,6 @@ Deno.test( }, ); -async function execCode(code: string) { - const p = Deno.run({ - cmd: [ - Deno.execPath(), - "eval", - "--unstable", - code, - ], - stdout: "piped", - }); - const [status, output] = await Promise.all([p.status(), p.output()]); - p.close(); - return [status.code, decoder.decode(output)]; -} - Deno.test({ name: "unrefTimer", permissions: { run: true }, |