Skip to content

Commit

Permalink
Allow passing in an empty order file
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBr committed Apr 11, 2023
1 parent aa16b87 commit 7c0972b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ruby/lib/ci/queue/bisect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def succeeded!
attr_reader :config

def slices
@tests.each_slice((@tests.size / 2.0).ceil).to_a
slice_size = (@tests.size / 2.0).ceil
return [[], []] if slice_size <= 0

@tests.each_slice(slice_size).to_a
end

def first_half
Expand Down

0 comments on commit 7c0972b

Please sign in to comment.