MINOR: Use port 0 in ResetIntegrationWithSslTest

I found this by running the tests while I happened to
have a kafka broker running.

Author: Tom Bentley <tbentley@redhat.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #4065 from tombentley/MINOR-random-port
This commit is contained in:
Tom Bentley 2017-10-12 14:22:53 +01:00 committed by Ismael Juma
parent 57839e17cf
commit f8ffb67ad6
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public class ResetIntegrationWithSslTest extends AbstractResetIntegrationTest {
// expiration of connections by the brokers to avoid errors when `AdminClient` sends requests after potentially // expiration of connections by the brokers to avoid errors when `AdminClient` sends requests after potentially
// very long sleep times // very long sleep times
props.put(KafkaConfig$.MODULE$.ConnectionsMaxIdleMsProp(), -1L); props.put(KafkaConfig$.MODULE$.ConnectionsMaxIdleMsProp(), -1L);
props.put(KafkaConfig$.MODULE$.ListenersProp(), "SSL://localhost:9092"); props.put(KafkaConfig$.MODULE$.ListenersProp(), "SSL://localhost:0");
props.put(KafkaConfig$.MODULE$.InterBrokerListenerNameProp(), "SSL"); props.put(KafkaConfig$.MODULE$.InterBrokerListenerNameProp(), "SSL");
props.putAll(sslConfig); props.putAll(sslConfig);
// we align time to seconds to get clean window boundaries and thus ensure the same result for each run // we align time to seconds to get clean window boundaries and thus ensure the same result for each run