Make timeouts less aggressive, CI machines are slow?

This commit is contained in:
Itamar Turner-Trauring 2022-11-16 10:36:11 -05:00
parent 2ab172ffca
commit 3531737347

View File

@ -669,7 +669,7 @@ class SystemTestMixin(pollmixin.PollMixin, testutil.StallMixin):
def getConnectionWithTimeout(*args, **kwargs): def getConnectionWithTimeout(*args, **kwargs):
d = getConnection(*args, **kwargs) d = getConnection(*args, **kwargs)
d.addTimeout(0.05, reactor) d.addTimeout(1, reactor)
return d return d
pool.getConnection = getConnectionWithTimeout pool.getConnection = getConnectionWithTimeout
@ -685,7 +685,7 @@ class SystemTestMixin(pollmixin.PollMixin, testutil.StallMixin):
d = self.sparent.stopService() d = self.sparent.stopService()
d.addBoth(flush_but_dont_ignore) d.addBoth(flush_but_dont_ignore)
d.addBoth(lambda x: self.close_idle_http_connections().addCallback(lambda _: x)) d.addBoth(lambda x: self.close_idle_http_connections().addCallback(lambda _: x))
d.addBoth(lambda x: deferLater(reactor, 0.1, lambda: x)) d.addBoth(lambda x: deferLater(reactor, 2, lambda: x))
return d return d
def getdir(self, subdir): def getdir(self, subdir):