Skip to content

Commit a5efed2

Browse files
davidradlreswqa
authored andcommitted
[FLINK-35246][test] Fix incorrect address construction in SqlClientSSLTest
Signed-off-by: David Radley <[email protected]>
1 parent 192f692 commit a5efed2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/SqlClientSSLTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.junit.jupiter.api.extension.RegisterExtension;
2929

3030
import java.io.IOException;
31-
import java.net.InetSocketAddress;
3231
import java.net.URL;
3332
import java.nio.file.Files;
3433
import java.nio.file.Path;
@@ -66,10 +65,10 @@ void testGatewayMode() throws Exception {
6665
new String[] {
6766
"gateway",
6867
"-e",
69-
InetSocketAddress.createUnresolved(
70-
SQL_GATEWAY_REST_ENDPOINT_EXTENSION.getTargetAddress(),
71-
SQL_GATEWAY_REST_ENDPOINT_EXTENSION.getTargetPort())
72-
.toString()
68+
String.format(
69+
"%s:%d",
70+
SQL_GATEWAY_REST_ENDPOINT_EXTENSION.getTargetAddress(),
71+
SQL_GATEWAY_REST_ENDPOINT_EXTENSION.getTargetPort())
7372
};
7473
String actual = runSqlClient(args, String.join("\n", "SET;", "QUIT;"), false);
7574
assertThat(actual).contains(SecurityOptions.SSL_REST_ENABLED.key(), "true");

0 commit comments

Comments
 (0)