Skip to content

Commit

Permalink
Remove duplicate raise codes. (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Yamashita01 committed Mar 18, 2023
1 parent faa9a56 commit 7bebc55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions lib/parallel_tests/grouper.rb
Expand Up @@ -26,10 +26,6 @@ def in_even_groups_by_size(items, num_groups, options = {})

isolate_count = isolate_count(options)

if isolate_count >= num_groups
raise 'Number of isolated processes must be less than total the number of processes'
end

if isolate_count >= num_groups
raise 'Number of isolated processes must be >= total number of processes'
end
Expand Down
2 changes: 1 addition & 1 deletion spec/parallel_tests/grouper_spec.rb
Expand Up @@ -72,7 +72,7 @@ def call(num_groups, options = {})
expect do
call(3, single_process: [/1/], isolate_count: 3)
end.to raise_error(
"Number of isolated processes must be less than total the number of processes"
"Number of isolated processes must be >= total number of processes"
)
end

Expand Down

0 comments on commit 7bebc55

Please sign in to comment.