test: reduce loop times for preventing test from timeout

PR-URL: https://github.com/nodejs/node/pull/43981
Refs: https://github.com/nodejs/reliability/issues/331
Reviewed-By: Feng Yu <F3n67u@outlook.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
theanarkh 2022-07-26 21:25:06 +08:00 committed by GitHub
parent 77e585657f
commit a506aa76a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ if (!process.env.HAS_STARTED_WORKER) {
}
} else {
const ctx = vm.createContext({});
for (let i = 0; i < 10000; i++) {
for (let i = 0; i < 100; i++) {
vm.runInContext('console.log(1)', ctx, { breakOnSigint: true });
}
}