Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"imports": {
"tinybench": "npm:tinybench@^6.0.2",
"@std/cli": "jsr:@std/cli@^1.0.31",
"@std/cli": "jsr:@std/cli@^1.0.32",
"@std/expect": "jsr:@std/expect@^1.0.20",
"@std/testing": "jsr:@std/testing@^1.0.19"
},
Expand Down
9 changes: 7 additions & 2 deletions tests/pools/abstract-pool.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1590,9 +1590,14 @@ describe({
await pool.destroy()
const elapsedTime = performance.now() - startTime
expect(tasksFinished).toBe(0)
// Worker kill message response timeout is 1000ms
// Worker kill message response timeout is 1000ms.
// Allow a small scheduler overhead margin on busy CI hosts.
const schedulerOverheadMargin = 100
expect(elapsedTime).toBeLessThanOrEqual(
tasksFinishedTimeout + 1000 * tasksFinished + 1000,
tasksFinishedTimeout +
1000 * tasksFinished +
1000 +
schedulerOverheadMargin,
)
})

Expand Down
Loading