Skip to content

Commit

Permalink
Ensure we shut down the queue even if a test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Sep 30, 2011
1 parent b2b8f9d commit 3cfae16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/helper.rb
Expand Up @@ -34,6 +34,9 @@ def async_test(time=0.5)
q = TimedQueue.new q = TimedQueue.new
yield Proc.new { q << nil } yield Proc.new { q << nil }
q.timed_pop(time) q.timed_pop(time)
ensure
count = GirlFriday.shutdown!(1)
puts "Unable to shutdown queue (#{count})" if count != 0
end end


end end

0 comments on commit 3cfae16

Please sign in to comment.