Permalink
Browse files

Ensure we shut down the queue even if a test fails

  • Loading branch information...
1 parent b2b8f9d commit 3cfae166e17ed1eebf3cfe85f7ec12e0e3e5c6ce @mperham committed Sep 30, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 test/helper.rb
View
@@ -34,6 +34,9 @@ def async_test(time=0.5)
q = TimedQueue.new
yield Proc.new { q << nil }
q.timed_pop(time)
+ ensure
+ count = GirlFriday.shutdown!(1)
+ puts "Unable to shutdown queue (#{count})" if count != 0
end
end

0 comments on commit 3cfae16

Please sign in to comment.