From 2e688cf651c37c9f01250cd7a641457179197f5f Mon Sep 17 00:00:00 2001 From: Zarif Mahfuz Date: Tue, 30 Apr 2024 13:22:47 -0600 Subject: [PATCH] Fix condition for empty bisect --- ruby/lib/minitest/queue/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby/lib/minitest/queue/runner.rb b/ruby/lib/minitest/queue/runner.rb index f77f00bd..17c49363 100644 --- a/ruby/lib/minitest/queue/runner.rb +++ b/ruby/lib/minitest/queue/runner.rb @@ -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