[CalendarServer-changes] [15379] CalendarServer/trunk/calendarserver/push/test/test_applepush.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Dec 11 10:12:27 PST 2015


Revision: 15379
          http://trac.calendarserver.org//changeset/15379
Author:   sagen at apple.com
Date:     2015-12-11 10:12:27 -0800 (Fri, 11 Dec 2015)
Log Message:
-----------
Add a 'callWhenRunning' to our test clock

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/push/test/test_applepush.py

Modified: CalendarServer/trunk/calendarserver/push/test/test_applepush.py
===================================================================
--- CalendarServer/trunk/calendarserver/push/test/test_applepush.py	2015-12-10 23:22:22 UTC (rev 15378)
+++ CalendarServer/trunk/calendarserver/push/test/test_applepush.py	2015-12-11 18:12:27 UTC (rev 15379)
@@ -115,8 +115,12 @@
 
         yield txn.commit()
 
-        # Set up the service
+        # Set up the service (note since Clock has no 'callWhenRunning' we add our own)
+        def callWhenRunning(callable, *args):
+            callable(*args)
         clock = Clock()
+        clock.callWhenRunning = callWhenRunning
+
         service = (yield ApplePushNotifierService.makeService(
             settings,
             self._sqlCalendarStore, testConnectorClass=TestConnector, reactor=clock))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20151211/f1d0615d/attachment.html>


More information about the calendarserver-changes mailing list