Skip to content

Commit

Permalink
ensure a test cannot fail due to available cpus
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Aug 13, 2024
1 parent 677b9aa commit dab5701
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [0_basic](../../uses_port.test.mjs#L32)
# [0_basic](../../uses_port.test.mjs#L35)

```js
run({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [0_second](../../uses_port.test.mjs#L39)
# [0_second](../../uses_port.test.mjs#L42)

```js
run({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const run = async (inlineExec) => {
uses: desc.uses,
runtime: inlineRuntime(async () => {
callOrder.push(`${key}_start`);
await new Promise((resolve) => setTimeout(resolve, 800));
await new Promise((resolve) => setTimeout(resolve, 500));
callOrder.push(`${key}_end`);
}),
};
Expand All @@ -23,6 +23,9 @@ const run = async (inlineExec) => {
testPlan: {
"./uses_port.test.mjs": inlineExecutions,
},
parallel: {
max: 4,
},
githubCheck: false,
});
return callOrder;
Expand Down

0 comments on commit dab5701

Please sign in to comment.