mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
Allow advancing the MockClock's time
This commit is contained in:
parent
eef58a299e
commit
a6a9b71da0
1 changed files with 4 additions and 0 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in a new issue