[CalendarServer-changes] [6535] CalendarServer/branches/users/glyph/sharedpool/txdav/caldav/ datastore/test/test_sql.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 1 14:26:58 PDT 2010


Revision: 6535
          http://trac.macosforge.org/projects/calendarserver/changeset/6535
Author:   glyph at apple.com
Date:     2010-11-01 14:26:54 -0700 (Mon, 01 Nov 2010)
Log Message:
-----------
Only need one store

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/sharedpool/txdav/caldav/datastore/test/test_sql.py

Modified: CalendarServer/branches/users/glyph/sharedpool/txdav/caldav/datastore/test/test_sql.py
===================================================================
--- CalendarServer/branches/users/glyph/sharedpool/txdav/caldav/datastore/test/test_sql.py	2010-11-01 21:26:27 UTC (rev 6534)
+++ CalendarServer/branches/users/glyph/sharedpool/txdav/caldav/datastore/test/test_sql.py	2010-11-01 21:26:54 UTC (rev 6535)
@@ -254,17 +254,16 @@
         resources to the same address book home does not cause a deadlock.
         """
 
-        calendarStore1 = yield buildStore(self, self.notifierFactory)
-        calendarStore2 = yield buildStore(self, self.notifierFactory)
+        calendarStore = yield buildStore(self, self.notifierFactory)
 
         # Provision the home now
-        txn = calendarStore1.newTransaction()
+        txn = calendarStore.newTransaction()
         home = yield txn.homeWithUID(ECALENDARTYPE, "uid1", create=True)
         self.assertNotEqual(home, None)
         txn.commit()
 
-        txn1 = calendarStore1.newTransaction()
-        txn2 = calendarStore2.newTransaction()
+        txn1 = calendarStore.newTransaction()
+        txn2 = calendarStore.newTransaction()
 
         home1 = yield txn1.homeWithUID(ECALENDARTYPE, "uid1", create=True)
         home2 = yield txn2.homeWithUID(ECALENDARTYPE, "uid1", create=True)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101101/2db8d763/attachment.html>


More information about the calendarserver-changes mailing list