revert this
parent
e55591dc39
commit
c580eb32ba
|
@ -178,14 +178,11 @@ class HomeserverTestCase(TestCase):
|
||||||
needs_threadpool = False
|
needs_threadpool = False
|
||||||
|
|
||||||
def __init__(self, methodName, *args, **kwargs):
|
def __init__(self, methodName, *args, **kwargs):
|
||||||
if methodName:
|
|
||||||
super().__init__(methodName, *args, **kwargs)
|
super().__init__(methodName, *args, **kwargs)
|
||||||
|
|
||||||
# see if we have any additional config for this test
|
# see if we have any additional config for this test
|
||||||
method = getattr(self, methodName)
|
method = getattr(self, methodName)
|
||||||
self._extra_config = getattr(method, "_extra_config", None)
|
self._extra_config = getattr(method, "_extra_config", None)
|
||||||
else:
|
|
||||||
self._extra_config = None
|
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
"""
|
"""
|
||||||
|
@ -193,7 +190,7 @@ class HomeserverTestCase(TestCase):
|
||||||
hijacking the authentication system to return a fixed user, and then
|
hijacking the authentication system to return a fixed user, and then
|
||||||
calling the prepare function.
|
calling the prepare function.
|
||||||
"""
|
"""
|
||||||
self.reactor, self.clock = self.get_clock()
|
self.reactor, self.clock = get_clock()
|
||||||
self._hs_args = {"clock": self.clock, "reactor": self.reactor}
|
self._hs_args = {"clock": self.clock, "reactor": self.reactor}
|
||||||
self.hs = self.make_homeserver(self.reactor, self.clock)
|
self.hs = self.make_homeserver(self.reactor, self.clock)
|
||||||
|
|
||||||
|
@ -243,9 +240,6 @@ class HomeserverTestCase(TestCase):
|
||||||
if hasattr(self, "prepare"):
|
if hasattr(self, "prepare"):
|
||||||
self.prepare(self.reactor, self.clock, self.hs)
|
self.prepare(self.reactor, self.clock, self.hs)
|
||||||
|
|
||||||
def get_clock(self):
|
|
||||||
return get_clock()
|
|
||||||
|
|
||||||
def wait_on_thread(self, deferred, timeout=10):
|
def wait_on_thread(self, deferred, timeout=10):
|
||||||
"""
|
"""
|
||||||
Wait until a Deferred is done, where it's waiting on a real thread.
|
Wait until a Deferred is done, where it's waiting on a real thread.
|
||||||
|
|
Loading…
Reference in New Issue