Take the 2008 Git User's Survey and help out! [ hide ]

public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Search Repo:
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Add unit test for RailsMaxInstancesPerApp.
Hongli Lai (Phusion) (author)
Thu May 15 13:43:58 -0700 2008
commit  828e920df2606523246d66bff484707880e344d5
tree    55cf024f50d712ebee2d5af22ffe2045a41c99b6
parent  7a1591fd13112faf256317990740d52e371c9013
...
344
345
346
 
 
 
 
 
 
 
 
 
 
347
348
...
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
0
@@ -344,5 +344,15 @@
0
     }
0
     ensure_equals("App should have been cleaned up", pool->getCount(), 0u);
0
   }
0
+
0
+ TEST_METHOD(17) {
0
+ // MaxPerApp must be respected.
0
+ pool->setMax(3);
0
+ pool->setMaxPerApp(1);
0
+
0
+ Application::SessionPtr session1 = pool->get("stub/minimal-railsapp");
0
+ Application::SessionPtr session2 = pool2->get("stub/minimal-railsapp");
0
+ ensure_equals("Only 1 application should have been spawned", pool->getCount(), 1u);
0
+ }
0
 
0
 #endif /* USE_TEMPLATE */

Comments

    No one has commented yet.