From 0df0eee264985d7cf57549a1f3b8af0154d68a72 Mon Sep 17 00:00:00 2001 From: Stephen Anderson Date: Wed, 23 Jul 2025 09:17:11 +1000 Subject: [PATCH] Correct options key passed to ParallelTests.determine_multiple The --multiply-processes CLI option is being parsed into options[:multiply-processes] but the call to determine_multiple was looking for it in options[:multiply]. --- CHANGELOG.md | 2 ++ lib/parallel_tests/cli.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71f9e50f..6968fb21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ only add here if you are working on a PR ### Fixed +- The `--multiply-processes` option was being parsed into `options[:multiply-processes]` but was being referenced as `options[:multiply]` in the code + ## 5.3.0 - 2025-05-30 ### Added diff --git a/lib/parallel_tests/cli.rb b/lib/parallel_tests/cli.rb index d53fbef5..5d40218d 100644 --- a/lib/parallel_tests/cli.rb +++ b/lib/parallel_tests/cli.rb @@ -15,7 +15,7 @@ def run(argv) ENV['DISABLE_SPRING'] ||= '1' num_processes = ParallelTests.determine_number_of_processes(options[:count]) - num_processes = (num_processes * ParallelTests.determine_multiple(options[:multiply])).round + num_processes = (num_processes * ParallelTests.determine_multiple(options[:multiply_processes])).round options[:first_is_1] ||= first_is_1?