Skip to content

Commit

Permalink
Do not perform runtimes check when another group-by method is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
inkstak committed Sep 19, 2023
1 parent 91c7e63 commit b4b8856
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/turbo_tests/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def tests_files

def use_runtime_info?
return true if @parallel_options[:group_by] == :runtime
return false if @parallel_options[:group_by] != :default

runtimes = ParallelTests::RSpec::Runner.send(:runtimes, tests_files, @parallel_options)
runtimes.size * 1.5 > tests_files.size
Expand Down

0 comments on commit b4b8856

Please sign in to comment.