mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
test: use unordered assertion for node worker test (#23288)
This ordering of events is important here, but it's very hard to get right. In the meantime to avoid flakes I'm adding an unordered assertion.
This commit is contained in:
parent
03b84197a0
commit
b7d716e8a3
2 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use test_util::itest;
|
||||
use test_util::itest_flaky;
|
||||
|
||||
itest!(worker_error {
|
||||
args: "run -A workers/worker_error.ts",
|
||||
|
@ -127,7 +126,7 @@ itest!(node_worker_auto_exits {
|
|||
exit_code: 0,
|
||||
});
|
||||
|
||||
itest_flaky!(node_worker_message_port {
|
||||
itest!(node_worker_message_port {
|
||||
args: "run --quiet --allow-read workers/node_worker_message_port.mjs",
|
||||
output: "workers/node_worker_message_port.mjs.out",
|
||||
exit_code: 0,
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
[UNORDERED_START]
|
||||
worker port closed
|
||||
worker: Hello from worker on parentPort!
|
||||
mainPort: Hello from worker on workerPort!
|
||||
mainPort closed
|
||||
[UNORDERED_END]
|
||||
|
|
Loading…
Reference in a new issue