about summary refs log tree commit homepage
path: root/test/test_server.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-10-28 06:52:36 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-28 06:52:36 +0000
commita667bc3787eaaf5b7df3b70624985d5fb5b8fc61 (patch)
tree7b364453627e2bdc4b737c5310abb8755f69222c /test/test_server.rb
parent64dc231c557426f5729ad3b8b3d5a6693ca85ad2 (diff)
downloadyahns-a667bc3787eaaf5b7df3b70624985d5fb5b8fc61.tar.gz
We do not want users to use the default queue unless an app
context requires it.  We also do not want to spin up the default
queue unless we are sure we have app contexts using it (and
not private/anonymous queues).
Diffstat (limited to 'test/test_server.rb')
-rw-r--r--test/test_server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_server.rb b/test/test_server.rb
index d34ed2a..e49c8ea 100644
--- a/test/test_server.rb
+++ b/test/test_server.rb
@@ -219,7 +219,7 @@ class TestServer < Testcase
     # ensure we set worker_threads correctly
     eggs = srv.instance_variable_get(:@config).qeggs
     assert_equal 1, eggs.size
-    assert_equal 1, eggs[:default].instance_variable_get(:@worker_threads)
+    assert_equal 1, eggs.first[1].instance_variable_get(:@worker_threads)
 
     pid = fork do
       bpipe[1].close