mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
add assertResources sanitizer to cli/js/ unit tests (#4161)
This commit is contained in:
parent
199fb195f3
commit
f55b22e195
11 changed files with 95 additions and 36 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue