mirror of https://github.com/apache/kafka.git
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:
parent
57839e17cf
commit
f8ffb67ad6
|
@ -57,7 +57,7 @@ public class ResetIntegrationWithSslTest extends AbstractResetIntegrationTest {
|
|||
// expiration of connections by the brokers to avoid errors when `AdminClient` sends requests after potentially
|
||||
// very long sleep times
|
||||
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.putAll(sslConfig);
|
||||
// we align time to seconds to get clean window boundaries and thus ensure the same result for each run
|
||||
|
|
Loading…
Reference in New Issue