diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-29 18:45:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-29 18:45:47 +0100 |
commit | f55b22e195ff0dfaf117aaef2a0fcc51fe0058c8 (patch) | |
tree | c314180b02b1ebf6b3f75ccbb4decade3b4fb511 /cli/js/process_test.ts | |
parent | 199fb195f334b582e4ee3fccaa9a33aa2a06ca48 (diff) |
add assertResources sanitizer to cli/js/ unit tests (#4161)
Diffstat (limited to 'cli/js/process_test.ts')
-rw-r--r-- | cli/js/process_test.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/js/process_test.ts b/cli/js/process_test.ts index fc9d15140..29467cc67 100644 --- a/cli/js/process_test.ts +++ b/cli/js/process_test.ts @@ -299,6 +299,7 @@ testPerm({ run: true }, async function runClose(): Promise<void> { const data = new Uint8Array(10); const r = await p.stderr!.read(data); assertEquals(r, Deno.EOF); + p.stderr!.close(); }); test(function signalNumbers(): void { @@ -341,6 +342,7 @@ if (Deno.build.os !== "win") { // re-enable when it can be made deterministic. // assertEquals(status.code, 1); // assertEquals(status.signal, Deno.Signal.SIGINT); + p.close(); }); testPerm({ run: true }, async function killFailed(): Promise<void> { |