summary refs log tree commit diff
path: root/tests/utils.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-11-10 15:51:40 +0000
committerMark Haines <mark.haines@matrix.org>2015-11-10 15:51:40 +0000
commit36c58b18a32f05a2f025bc916c14b9e2f78f439b (patch)
tree74388f162ee07c716e35ab8383ff29ae8a5904e6 /tests/utils.py
parentRun the background updates when starting synapse. (diff)
downloadsynapse-36c58b18a32f05a2f025bc916c14b9e2f78f439b.tar.xz
Test for background updates
Diffstat (limited to '')
-rw-r--r--tests/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
index ca2c33cf8e..91040c2efd 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -243,6 +243,9 @@ class MockClock(object):
             else:
                 self.timers.append(t)
 
+    def advance_time_msec(self, ms):
+        self.advance_time(ms / 1000.)
+
 
 class SQLiteMemoryDbPool(ConnectionPool, object):
     def __init__(self):