summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-05-13 16:54:02 +0100
committerMark Haines <mark.haines@matrix.org>2015-05-13 16:54:02 +0100
commitf1b83d88a3d3ad596631e51852a9802d0a7270a0 (patch)
tree7719ceccb63d9fd4fccdd29242f37072305b669e /tests
parentDon't set a timer if there's already a result to return (diff)
downloadsynapse-f1b83d88a3d3ad596631e51852a9802d0a7270a0.tar.xz
Discard unused NotifierUserStreams
Diffstat (limited to '')
-rw-r--r--tests/rest/client/v1/test_presence.py1
-rw-r--r--tests/utils.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/rest/client/v1/test_presence.py b/tests/rest/client/v1/test_presence.py
index c0c52796ad..29c0038f06 100644
--- a/tests/rest/client/v1/test_presence.py
+++ b/tests/rest/client/v1/test_presence.py
@@ -271,6 +271,7 @@ class PresenceEventStreamTestCase(unittest.TestCase):
                 "call_later",
                 "cancel_call_later",
                 "time_msec",
+                "looping_call",
             ]),
         )
 
diff --git a/tests/utils.py b/tests/utils.py
index a67530bd63..3b5c335911 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -197,6 +197,9 @@ class MockClock(object):
 
         return t
 
+    def looping_call(self, function, interval):
+        pass
+
     def cancel_call_later(self, timer):
         if timer[2]:
             raise Exception("Cannot cancel an expired timer")