Reduce batch time in producer integration test (speedup test)

This commit is contained in:
Dana Powers
2016-04-07 21:30:35 -07:00
parent 6662d1e624
commit af36c6ddd0

View File

@@ -398,7 +398,10 @@ class TestKafkaProducerIntegration(KafkaIntegrationTestCase):
partition = self.client.get_partition_ids_for_topic(self.topic)[0]
start_offset = self.current_offset(self.topic, partition)
producer = KeyedProducer(self.client, partitioner = RoundRobinPartitioner, async=True)
producer = KeyedProducer(self.client,
partitioner=RoundRobinPartitioner,
async=True,
batch_send_every_t=1)
resp = producer.send_messages(self.topic, self.key("key1"), self.msg("one"))
self.assertEqual(len(resp), 0)