diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-02-25 09:14:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 09:14:27 -0500 |
commit | 91b606aaae23bcb790b55adc5fe70a182a37d564 (patch) | |
tree | 16b56a21ffcb3991569eda984fbd14073bdbd3ae /cli/js/dispatch_minimal_test.ts | |
parent | 805992b14a65a6dbfb857dea6d9b657477de043d (diff) |
Clean up how we use opIds (#4118)
Diffstat (limited to 'cli/js/dispatch_minimal_test.ts')
-rw-r--r-- | cli/js/dispatch_minimal_test.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/js/dispatch_minimal_test.ts b/cli/js/dispatch_minimal_test.ts index 75381204f..2ae3fceeb 100644 --- a/cli/js/dispatch_minimal_test.ts +++ b/cli/js/dispatch_minimal_test.ts @@ -1,8 +1,8 @@ import { - test, assert, assertEquals, assertMatch, + test, unreachable } from "./test_util.ts"; @@ -16,8 +16,9 @@ const readErrorStackPattern = new RegExp( test(async function sendAsyncStackTrace(): Promise<void> { const buf = new Uint8Array(10); + const rid = 10; try { - await Deno.read(10, buf); + await Deno.read(rid, buf); unreachable(); } catch (error) { assertMatch(error.stack, readErrorStackPattern); @@ -26,7 +27,7 @@ test(async function sendAsyncStackTrace(): Promise<void> { test(async function malformedMinimalControlBuffer(): Promise<void> { // @ts-ignore - const readOpId = Deno.core.ops()["read"]; + const readOpId = Deno.core.ops()["op_read"]; // @ts-ignore const res = Deno.core.send(readOpId, new Uint8Array([1, 2, 3, 4, 5])); const header = res.slice(0, 12); |