MINOR: Increase the amount of time available to the `test_verifiable_producer` (#9201)

Increase the amount of time available to the `test_verifiable_producer` test to login and get the process name for the verifiable producer from 5 seconds to 10 seconds.

We were seeing some test failures due to the assertion failing because the verifiable producer would complete before we could login, list the processes, and parse out the producer version. Previously, we were giving this operation 5 seconds to run, this PR bumps it up to 10 seconds. 

I verified locally that this does not flake, but even at 5 seconds I wasn't seeing any flakes. Ultimately we should find a better strategy than racing to query the producer process (as outlined in the existing comments). 

Reviewers: Jason Gustafson <jason@confluent.io>
This commit is contained in:
Gardner Vickers 2020-11-12 16:09:15 -05:00 committed by GitHub
parent bb34c5c8cc
commit f978d0551b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -39,8 +39,7 @@ class TestVerifiableProducer(Test):
self.num_messages = 1000
# This will produce to source kafka cluster
self.producer = VerifiableProducer(test_context, num_nodes=1, kafka=self.kafka, topic=self.topic,
max_messages=self.num_messages, throughput=self.num_messages // 5)
max_messages=self.num_messages, throughput=self.num_messages // 10)
def setUp(self):
self.zk.start()
self.kafka.start()