[CalendarServer-changes] [10918] CalendarServer/trunk/calendarserver/push/test/test_notifier.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 13 18:29:15 PDT 2013
Revision: 10918
http://trac.calendarserver.org//changeset/10918
Author: sagen at apple.com
Date: 2013-03-13 18:29:15 -0700 (Wed, 13 Mar 2013)
Log Message:
-----------
Update a push test to make sure we're using WorkItem group correctly
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/push/test/test_notifier.py
Modified: CalendarServer/trunk/calendarserver/push/test/test_notifier.py
===================================================================
--- CalendarServer/trunk/calendarserver/push/test/test_notifier.py 2013-03-14 01:24:12 UTC (rev 10917)
+++ CalendarServer/trunk/calendarserver/push/test/test_notifier.py 2013-03-14 01:29:15 UTC (rev 10918)
@@ -117,6 +117,13 @@
wp = (yield txn.enqueue(PushNotificationWork,
pushID="/CalDAV/localhost/bar/",
))
+ # Enqueue a different pushID to ensure those are not grouped with
+ # the others:
+ wp = (yield txn.enqueue(PushNotificationWork,
+ pushID="/CalDAV/localhost/baz/",
+ ))
+
yield txn.commit()
yield wp.whenExecuted()
- self.assertEquals(pushDistributor.history, ["/CalDAV/localhost/bar/"])
+ self.assertEquals(pushDistributor.history,
+ ["/CalDAV/localhost/bar/", "/CalDAV/localhost/baz/"])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130313/1ea4d53b/attachment.html>
More information about the calendarserver-changes
mailing list