18075: Kill off MaxComputeVMs properly.
[arvados.git] / services / api / test / unit / node_test.rb
index 9fa3febe1e75fddf4227fae9801cda7d976b4149..c3d0708869aa8060db80ccae35fa2ec422f7c6a6 100644 (file)
@@ -196,13 +196,12 @@ class NodeTest < ActiveSupport::TestCase
   end
 
   test 'run out of slots' do
-    Rails.configuration.Containers.MaxComputeVMs = 3
     act_as_system_user do
       Node.destroy_all
       (1..4).each do |i|
         n = Node.create!
         args = { ip: "10.0.0.#{i}", ping_secret: n.info['ping_secret'] }
-        if i <= Rails.configuration.Containers.MaxComputeVMs
+        if i <= 3 # MAX_VMS
           n.ping(args)
         else
           assert_raises do