summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
index e397712d82..20a63316fd 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -104,6 +104,10 @@ class MockClock(object):
     def time_msec(self):
         return self.time() * 1000
 
+    # For unit testing
+    def advance_time(self, secs):
+        self.now += secs
+
 
 class MemoryDataStore(object):