From f55b22e195ff0dfaf117aaef2a0fcc51fe0058c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 29 Feb 2020 18:45:47 +0100 Subject: add assertResources sanitizer to cli/js/ unit tests (#4161) --- cli/js/process_test.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/js/process_test.ts') 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 { 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 { -- cgit v1.2.3