From 02d0ff58d2bab24ebbd1e61afe6b571ff4c415af Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Fri, 3 May 2024 11:22:47 +0530 Subject: refactor(tests): move worker_threads itests to spec tests (#23648) --- tests/specs/node/worker_threads/__test__.jsonc | 44 ++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 6 deletions(-) (limited to 'tests/specs/node/worker_threads/__test__.jsonc') 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 + } + } } -- cgit v1.2.3