You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "zentol (via GitHub)" <gi...@apache.org> on 2023/04/24 09:45:52 UTC

[GitHub] [flink] zentol commented on a diff in pull request #22471: [FLINK-31897] Fix the unstable test ClientTest#testRequestUnavailableHost

zentol commented on code in PR #22471:
URL: https://github.com/apache/flink/pull/22471#discussion_r1175040702


##########
flink-queryable-state/flink-queryable-state-runtime/src/test/java/org/apache/flink/queryablestate/network/ClientTest.java:
##########
@@ -257,33 +244,33 @@ public void testRequestUnavailableHost() throws Exception {
         try {
             client = new Client<>("Test Client", 1, serializer, stats);
 
-            InetSocketAddress serverAddress = new InetSocketAddress(InetAddress.getLocalHost(), 0);
+            InetSocketAddress serverAddress =
+                    new InetSocketAddress(
+                            InetAddress.getLocalHost(), NetUtils.getAvailablePort().getPort());

Review Comment:
   What makes you believe that this is more stable?



-- 
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-unsubscribe@flink.apache.org

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