From 32f77ff8ce3b67ba14943738b28e6912b44a1454 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 19 Apr 2017 10:45:21 -0700 Subject: [PATCH] test: minimize time for child_process benchmark test-benchmark-child-process sometimes times out on Windows in CI. Minimize the number of configurations that run so it will (hopefully) not time out anymore. Set dur=0. PR-URL: https://github.com/nodejs/node/pull/12518 Reviewed-By: Colin Ihrig Reviewed-By: Santiago Gimeno --- test/sequential/test-benchmark-child-process.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/sequential/test-benchmark-child-process.js b/test/sequential/test-benchmark-child-process.js index 4acad7d0f7bd9c..2314c89948c701 100644 --- a/test/sequential/test-benchmark-child-process.js +++ b/test/sequential/test-benchmark-child-process.js @@ -8,9 +8,11 @@ const path = require('path'); const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js'); -const child = fork(runjs, ['--set', 'dur=0.1', +const child = fork(runjs, ['--set', 'dur=0', '--set', 'n=1', '--set', 'len=1', + '--set', 'params=1', + '--set', 'methodName=execSync', 'child_process'], {env: {NODEJS_BENCHMARK_ZERO_ALLOWED: 1}}); child.on('exit', (code, signal) => {