Skip to content

Instantly share code, notes, and snippets.

@nagachika
Created December 28, 2011 08:46
Show Gist options
  • Save nagachika/1527143 to your computer and use it in GitHub Desktop.
Save nagachika/1527143 to your computer and use it in GitHub Desktop.
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index eb0666a..00313a3 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -457,7 +457,9 @@ module Test
bang = $1
worker.status = :ready
if @tasks.empty?
- break unless @workers.find{|x| x.status == :running }
+ unless @workers.find{|x| [:running, :prepare].include? x.status}
+ break
+ end
else
if @options[:separate] && bang.empty?
@workers_hash.delete worker.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment