Use 2-second KafkaClient timeout in failover tests
This commit is contained in:
@@ -34,7 +34,7 @@ class TestFailover(KafkaIntegrationTestCase):
|
|||||||
self.brokers = [KafkaFixture.instance(i, *kk_args) for i in range(replicas)]
|
self.brokers = [KafkaFixture.instance(i, *kk_args) for i in range(replicas)]
|
||||||
|
|
||||||
hosts = ['%s:%d' % (b.host, b.port) for b in self.brokers]
|
hosts = ['%s:%d' % (b.host, b.port) for b in self.brokers]
|
||||||
self.client = KafkaClient(hosts)
|
self.client = KafkaClient(hosts, timeout=2)
|
||||||
super(TestFailover, self).setUp()
|
super(TestFailover, self).setUp()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user