syhily commented on a change in pull request #17319:
URL: https://github.com/apache/flink/pull/17319#discussion_r712268012



##########
File path: 
flink-connectors/flink-connector-pulsar/src/test/java/org/apache/flink/connector/pulsar/testutils/runtime/mock/PulsarMockRuntime.java
##########
@@ -146,8 +146,8 @@ private static ServiceConfiguration createConfig() {
 
         configuration.setWebSocketServiceEnabled(false);
         // Binding Ports
-        configuration.setBrokerServicePort(Optional.of(findAvailablePort()));
-        configuration.setWebServicePort(Optional.of(findAvailablePort()));
+        configuration.setBrokerServicePort(Optional.of(0));
+        configuration.setWebServicePort(Optional.of(0));

Review comment:
       PortBindingUtils is useless, just remove it. And remove the unused 
import.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to