[CalendarServer-changes] [6870] CalendarServer/branches/users/glyph/db-reconnect/twext/enterprise/ test/test_adbapi2.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Feb 3 15:41:43 PST 2011


Revision: 6870
          http://trac.macosforge.org/projects/calendarserver/changeset/6870
Author:   glyph at apple.com
Date:     2011-02-03 15:41:42 -0800 (Thu, 03 Feb 2011)
Log Message:
-----------
test for infinite loop condition

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/db-reconnect/twext/enterprise/test/test_adbapi2.py

Modified: CalendarServer/branches/users/glyph/db-reconnect/twext/enterprise/test/test_adbapi2.py
===================================================================
--- CalendarServer/branches/users/glyph/db-reconnect/twext/enterprise/test/test_adbapi2.py	2011-02-03 23:41:32 UTC (rev 6869)
+++ CalendarServer/branches/users/glyph/db-reconnect/twext/enterprise/test/test_adbapi2.py	2011-02-03 23:41:42 UTC (rev 6870)
@@ -601,3 +601,16 @@
         self.assertEquals(self.factory.connections[1].closed, True)
 
 
+    def test_abortRecycledTransaction(self):
+        """
+        L{ConnectionPool.stopService} will shut down if a recycled transaction
+        is still pending.
+        """
+        recycled = self.pool.connection()
+        recycled.commit()
+        remember = []
+        remember.append(self.pool.connection())
+        self.assertEquals(resultOf(self.pool.stopService()), [None])
+
+
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110203/9575fc8a/attachment.html>


More information about the calendarserver-changes mailing list