diff options
author | Erik Johnston <erik@matrix.org> | 2016-02-15 17:10:40 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-02-17 15:40:50 +0000 |
commit | e5999bfb1a4aab56acecb59ed6d068442f5b11a0 (patch) | |
tree | fb55356d91a26e890547f05969aaeaef9c1105a1 /tests/utils.py | |
parent | Add wheeltimer impl (diff) | |
download | synapse-e5999bfb1a4aab56acecb59ed6d068442f5b11a0.tar.xz |
Initial cut
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utils.py b/tests/utils.py index 3b1eb50d8d..f71125042b 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -224,12 +224,12 @@ class MockClock(object): def time_msec(self): return self.time() * 1000 - def call_later(self, delay, callback): + def call_later(self, delay, callback, *args, **kwargs): current_context = LoggingContext.current_context() def wrapped_callback(): LoggingContext.thread_local.current_context = current_context - callback() + callback(*args, **kwargs) t = [self.now + delay, wrapped_callback, False] self.timers.append(t) |