From 3cfae166e17ed1eebf3cfe85f7ec12e0e3e5c6ce Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Fri, 30 Sep 2011 09:45:42 -0700 Subject: [PATCH] Ensure we shut down the queue even if a test fails --- test/helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/helper.rb b/test/helper.rb index 1d3bb61..483c021 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -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