mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
ci: try to make running node compat tests a little more reliable on CI (#29957)
This commit is contained in:
parent
1946d35d6e
commit
11f4109344
1 changed files with 7 additions and 3 deletions
|
@ -22,10 +22,10 @@ import {
|
|||
usesNodeTestModule,
|
||||
} from "./common.ts";
|
||||
|
||||
// The timeout ms for single test execution. If a single test didn't finish in this timeout milliseconds, the test is considered as failure
|
||||
const TIMEOUT = 5000;
|
||||
const testDirUrl = new URL("runner/suite/test/", import.meta.url).href;
|
||||
const IS_CI = !!Deno.env.get("CI");
|
||||
// The timeout ms for single test execution. If a single test didn't finish in this timeout milliseconds, the test is considered as failure
|
||||
const TIMEOUT = IS_CI ? 10_000 : 5000;
|
||||
|
||||
// The metadata of the test report
|
||||
export type TestReportMetadata = {
|
||||
|
@ -359,7 +359,11 @@ async function main() {
|
|||
}
|
||||
// Runs parallel tests
|
||||
for await (
|
||||
const _ of pooledMap(navigator.hardwareConcurrency, parallel, run)
|
||||
const _ of pooledMap(
|
||||
Math.max(1, navigator.hardwareConcurrency - 1),
|
||||
parallel,
|
||||
run,
|
||||
)
|
||||
) {
|
||||
// pass
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue