summaryrefslogtreecommitdiff
path: root/tests/specs/node/worker_threads/__test__.jsonc
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2024-05-03 11:22:47 +0530
committerGitHub <noreply@github.com>2024-05-03 05:52:47 +0000
commit02d0ff58d2bab24ebbd1e61afe6b571ff4c415af (patch)
tree78b7fa4e7cf0265d688e34ddaa422ec344273e06 /tests/specs/node/worker_threads/__test__.jsonc
parent3e98ea4e69732d8a659ca0ca61747fe3887ab673 (diff)
refactor(tests): move worker_threads itests to spec tests (#23648)
Diffstat (limited to 'tests/specs/node/worker_threads/__test__.jsonc')
-rw-r--r--tests/specs/node/worker_threads/__test__.jsonc44
1 files changed, 38 insertions, 6 deletions
diff --git a/tests/specs/node/worker_threads/__test__.jsonc b/tests/specs/node/worker_threads/__test__.jsonc
index adcb9a85d..9254d9d37 100644
--- a/tests/specs/node/worker_threads/__test__.jsonc
+++ b/tests/specs/node/worker_threads/__test__.jsonc
@@ -1,8 +1,40 @@
{
- "steps": [{
- "args": "run message_port_removelistener.mjs",
- "output": "message_port_removelistener.mjs.out",
- // Note: successful exit asserts that the test passed
- "exitCode": 0
- }]
+ "tests": {
+ "auto_exits": {
+ // Test for https://github.com/denoland/deno/issues/22629
+ // Test for https://github.com/denoland/deno/issues/22934
+ "args": "run --quiet --allow-read auto_exits.mjs",
+ "output": "auto_exits.out",
+ "exitCode": 0
+ },
+ "message_port": {
+ "args": "run --allow-env --allow-read message_port.mjs",
+ "output": "message_port.out",
+ "exitCode": 0
+ },
+ "message_port_transfer": {
+ "args": "run --quiet --allow-read message_port_transfer.mjs",
+ "output": "message_port_transfer.out",
+ "exitCode": 0
+ },
+ "message_port_removelistener": {
+ "args": "run message_port_removelistener.mjs",
+ "output": "message_port_removelistener.out",
+ // Note: successful exit asserts that the test passed
+ "exitCode": 0
+ },
+ "message_port_unref": {
+ "args": "run --allow-env --allow-read message_port_unref.mjs",
+ "output": "message_port_unref.out",
+ "exitCode": 0
+ },
+ "parent_port_unref": {
+ "args": "run --allow-env --allow-read message_port_unref.mjs",
+ "envs": {
+ "PARENT_PORT": "1"
+ },
+ "output": "message_port_unref.out",
+ "exitCode": 0
+ }
+ }
}