Increase zk session timeout during tests

When running the full test suite the test cases are running in a
highly contended and variable environment. We see that the default
session timeout of 10 seconds during the tests is too low in some
cases and cause test failures. Increase that timeout to give zookeeper
more time to respond.

Change-Id: Icb2832008147ab344c60094af574db5c02218cf1
This commit is contained in:
Tobias Henkel 2019-03-23 09:16:36 +01:00
parent 145d3d4b2a
commit e8ebb9895e
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2
1 changed files with 1 additions and 1 deletions

View File

@ -2552,7 +2552,7 @@ class ZuulTestCase(BaseTestCase):
self.merge_server = None
self.nodepool = zuul.nodepool.Nodepool(self.sched)
self.zk = zuul.zk.ZooKeeper()
self.zk.connect(self.zk_config)
self.zk.connect(self.zk_config, timeout=30.0)
self.fake_nodepool = FakeNodepool(
self.zk_chroot_fixture.zookeeper_host,