[CalendarServer-changes] [13812] CalendarServer/trunk/txdav/who/test/test_groups.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jul 31 17:25:27 PDT 2014


Revision: 13812
          http://trac.calendarserver.org//changeset/13812
Author:   gaya at apple.com
Date:     2014-07-31 17:25:27 -0700 (Thu, 31 Jul 2014)
Log Message:
-----------
add missing "txn = store.newTransaction()"

Modified Paths:
--------------
    CalendarServer/trunk/txdav/who/test/test_groups.py

Modified: CalendarServer/trunk/txdav/who/test/test_groups.py
===================================================================
--- CalendarServer/trunk/txdav/who/test/test_groups.py	2014-07-31 23:22:20 UTC (rev 13811)
+++ CalendarServer/trunk/txdav/who/test/test_groups.py	2014-08-01 00:25:27 UTC (rev 13812)
@@ -602,6 +602,7 @@
         # delegate groups not deleted
         for uid in (u"testgroup", u"emptygroup",):
 
+            txn = store.newTransaction()
             groupID = (yield txn.groupByUID(uid))[0]
             yield txn.addDelegateGroup(delegator=u"sagen", delegateGroupID=groupID, readWrite=True)
             yield txn.commit()
@@ -611,7 +612,7 @@
             txn = store.newTransaction()
             yield self.groupCacher.update(txn)
             groupID = (yield txn.groupByUID(uid, create=False))[0]
-
+            yield txn.commit()
             self.assertNotEqual(groupID, None)
 
         # delegate group is deleted. unused group is deleted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140731/5cb601ac/attachment-0001.html>


More information about the calendarserver-changes mailing list