Skip to content

Commit ba7362e

Browse files
authored
Correct options key passed to ParallelTests.determine_multiple (#1018)
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].
1 parent ed3b62d commit ba7362e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ only add here if you are working on a PR
1010

1111
### Fixed
1212

13+
- The `--multiply-processes` option was being parsed into `options[:multiply-processes]` but was being referenced as `options[:multiply]` in the code
14+
1315
## 5.3.0 - 2025-05-30
1416

1517
### Added

lib/parallel_tests/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def run(argv)
1515
ENV['DISABLE_SPRING'] ||= '1'
1616

1717
num_processes = ParallelTests.determine_number_of_processes(options[:count])
18-
num_processes = (num_processes * ParallelTests.determine_multiple(options[:multiply])).round
18+
num_processes = (num_processes * ParallelTests.determine_multiple(options[:multiply_processes])).round
1919

2020
options[:first_is_1] ||= first_is_1?
2121

0 commit comments

Comments
 (0)