[CalendarServer-changes] [7426] CalendarServer/trunk/contrib/performance/loadtest/test_sim.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue May 10 12:14:13 PDT 2011
Revision: 7426
http://trac.macosforge.org/projects/calendarserver/changeset/7426
Author: exarkun at twistedmatrix.com
Date: 2011-05-10 12:14:13 -0700 (Tue, 10 May 2011)
Log Message:
-----------
Change LoadSimulator setup test to verify the construction of the LagTrackingReactor
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/loadtest/test_sim.py
Modified: CalendarServer/trunk/contrib/performance/loadtest/test_sim.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/test_sim.py 2011-05-10 14:39:09 UTC (rev 7425)
+++ CalendarServer/trunk/contrib/performance/loadtest/test_sim.py 2011-05-10 19:14:13 UTC (rev 7426)
@@ -30,7 +30,8 @@
from loadtest.population import (
SmoothRampUp, ClientType, PopulationParameters, CalendarClientSimulator,
SimpleStatistics)
-from loadtest.sim import Server, Arrival, SimOptions, LoadSimulator, main
+from loadtest.sim import (
+ Server, Arrival, SimOptions, LoadSimulator, LagTrackingReactor, main)
VALID_CONFIG = {
'server': {
@@ -155,7 +156,8 @@
sim = LoadSimulator(Server(host, port), None, None, reactor=reactor)
calsim = sim.createSimulator()
self.assertIsInstance(calsim, CalendarClientSimulator)
- self.assertIdentical(calsim.reactor, reactor)
+ self.assertIsInstance(calsim.reactor, LagTrackingReactor)
+ self.assertIdentical(calsim.reactor._reactor, reactor)
self.assertEquals(calsim.host, host)
self.assertEquals(calsim.port, port)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110510/50a2092f/attachment.html>
More information about the calendarserver-changes
mailing list