summaryrefslogtreecommitdiff
path: root/cli/tests/unit/ref_unref_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/ref_unref_test.ts')
-rw-r--r--cli/tests/unit/ref_unref_test.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/cli/tests/unit/ref_unref_test.ts b/cli/tests/unit/ref_unref_test.ts
deleted file mode 100644
index 6f5bcf0a7..000000000
--- a/cli/tests/unit/ref_unref_test.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-
-import { assertNotEquals, execCode } from "./test_util.ts";
-
-Deno.test("[unrefOpPromise] unref'ing invalid ops does not have effects", async () => {
- const [statusCode, _] = await execCode(`
- Deno[Deno.internal].core.unrefOpPromise(new Promise(r => null));
- setTimeout(() => { throw new Error() }, 10)
- `);
- // Invalid unrefOpPromise call doesn't affect exit condition of event loop
- assertNotEquals(statusCode, 0);
-});