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:
parent
145d3d4b2a
commit
e8ebb9895e
@ -2552,7 +2552,7 @@ class ZuulTestCase(BaseTestCase):
|
|||||||
self.merge_server = None
|
self.merge_server = None
|
||||||
self.nodepool = zuul.nodepool.Nodepool(self.sched)
|
self.nodepool = zuul.nodepool.Nodepool(self.sched)
|
||||||
self.zk = zuul.zk.ZooKeeper()
|
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.fake_nodepool = FakeNodepool(
|
||||||
self.zk_chroot_fixture.zookeeper_host,
|
self.zk_chroot_fixture.zookeeper_host,
|
||||||
|
Loading…
Reference in New Issue
Block a user