Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix broken test

  • Loading branch information...
commit d5298198e2bf8395c0560a5a57fb741bfdedd171 1 parent 4490661
Mike Perham authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/test_girl_friday.rb
5 test/test_girl_friday.rb
View
@@ -145,10 +145,13 @@ def test_should_create_workers_lazily
assert_equal 1, queue.instance_variable_get(:@ready_workers).size
cb.call
end
- assert_nil queue.instance_variable_get(:@ready_workers)
+ assert_equal 0, queue.status[:busy_workers]
+ assert_equal 0, queue.status[:total_workers]
# don't instantiate the worker threads until we actually put
# work onto the queue.
queue << 'empty msg'
+ assert_equal 1, queue.status[:busy_workers]
+ assert_equal 1, queue.status[:total_workers]
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.