Skip to content

Commit 462f362

Browse files
committed
test: enlarge pool events timeout waiting
Signed-off-by: Jérôme Benoit <[email protected]>
1 parent d85f5a4 commit 462f362

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

deno.json

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"version": "0.5.5",
44
"exports": "./src/mod.ts",
55
"compilerOptions": {
6-
"lib": [
7-
"deno.worker"
8-
],
6+
"lib": ["deno.worker"],
97
"strict": true
108
},
119
"tasks": {
@@ -26,9 +24,7 @@
2624
"documentation": "deno doc ./src/mod.ts"
2725
},
2826
"test": {
29-
"include": [
30-
"./tests/**/*.test.mjs"
31-
]
27+
"include": ["./tests/**/*.test.mjs"]
3228
},
3329
"fmt": {
3430
"semiColons": false,
@@ -41,18 +37,8 @@
4137
"@std/testing": "jsr:@std/testing@^1.0.14"
4238
},
4339
"publish": {
44-
"include": [
45-
"LICENSE",
46-
"README.md",
47-
"deno.json",
48-
"src/**/*.ts"
49-
]
40+
"include": ["LICENSE", "README.md", "deno.json", "src/**/*.ts"]
5041
},
5142
"lock": false,
52-
"exclude": [
53-
"./coverage",
54-
"./dist/browser",
55-
"./dist/esm",
56-
"./npm"
57-
]
43+
"exclude": ["./coverage", "./dist/browser", "./dist/esm", "./npm"]
5844
}

tests/pools/thread/dynamic.test.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ describe({
6262
expect(pool.workerNodes.length).toBeLessThanOrEqual(max)
6363
expect(pool.workerNodes.length).toBeGreaterThan(min)
6464
expect(poolBusy).toBe(1)
65-
const exitEvents = await waitWorkerNodeEvents(pool, 'exit', max - min)
65+
const exitEvents = await waitWorkerNodeEvents(
66+
pool,
67+
'exit',
68+
max - min,
69+
10000,
70+
)
6671
expect(exitEvents).toBe(max - min)
6772
expect(pool.workerNodes.length).toBe(min)
6873
})

0 commit comments

Comments
 (0)