DEV: rebalance parallel tests (again)

This commit is contained in:
Penar Musaraj 2019-03-19 10:21:50 -04:00
parent 60b6c67c1c
commit ed74774001

View File

@ -136,7 +136,7 @@ task 'docker:test' do
spec_partials = Dir["spec/**/*_spec.rb"].sort.in_groups(total, false)
# quick and dirty load balancing
if (spec_partials.count > 3)
spec_partials[0].concat(spec_partials[total - 1].shift(60))
spec_partials[0].concat(spec_partials[total - 1].shift(40))
end
params << spec_partials[subset].join(' ')