mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: rebalance parallel tests (again)
This commit is contained in:
parent
60b6c67c1c
commit
ed74774001
@ -136,7 +136,7 @@ task 'docker:test' do
|
|||||||
spec_partials = Dir["spec/**/*_spec.rb"].sort.in_groups(total, false)
|
spec_partials = Dir["spec/**/*_spec.rb"].sort.in_groups(total, false)
|
||||||
# quick and dirty load balancing
|
# quick and dirty load balancing
|
||||||
if (spec_partials.count > 3)
|
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
|
end
|
||||||
|
|
||||||
params << spec_partials[subset].join(' ')
|
params << spec_partials[subset].join(' ')
|
||||||
|
Loading…
Reference in New Issue
Block a user