Skip to content

Commit

Permalink
Fix condition for empty bisect
Browse files Browse the repository at this point in the history
  • Loading branch information
zarifmahfuz committed Apr 30, 2024
1 parent c16aea5 commit 2e688cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruby/lib/minitest/queue/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def bisect_command
puts
end

if run_index == 0
if queue.suspects_left == 0
step(yellow("The failing test was the first test in the test order so there is nothing to bisect."))
File.write('log/test_order.log', "")
exit! 1
Expand Down

0 comments on commit 2e688cf

Please sign in to comment.