[CalendarServer-changes] [10224] CalendarServer/branches/users/glyph/queue-locking-and-timing

source_changes at macosforge.org source_changes at macosforge.org
Fri Jan 4 16:38:35 PST 2013


Revision: 10224
          http://trac.calendarserver.org//changeset/10224
Author:   glyph at apple.com
Date:     2013-01-04 16:38:35 -0800 (Fri, 04 Jan 2013)
Log Message:
-----------
Make sure that the worker has spawned enough to increase the available capacity.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/test/test_queue.py

Property Changed:
----------------
    CalendarServer/branches/users/glyph/queue-locking-and-timing/

Modified: CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/test/test_queue.py
===================================================================
--- CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/test/test_queue.py	2013-01-05 00:38:34 UTC (rev 10223)
+++ CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/test/test_queue.py	2013-01-05 00:38:35 UTC (rev 10224)
@@ -172,6 +172,8 @@
         wlf = self.pcp.workerListenerFactory()
         proto = wlf.buildProtocol(None)
         proto.makeConnection(StringTransport())
+        # Sanity check.
+        self.assertEqual(self.pcp.workerPool.hasAvailableCapacity(), True)
         # Now it has some capacity.
         self.checkPerformer(WorkerConnectionPool)
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130104/8851a41a/attachment.html>


More information about the calendarserver-changes mailing list