Skip to content

Commit

Permalink
[FLINK-35246][test] Fix incorrect address construction in SqlClientSS…
Browse files Browse the repository at this point in the history
…LTest
  • Loading branch information
reswqa committed Apr 26, 2024
1 parent 3ff2ba4 commit 4e6dbe2
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import org.junit.jupiter.api.extension.RegisterExtension;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
Expand Down Expand Up @@ -66,10 +65,10 @@ void testGatewayMode() throws Exception {
new String[] {
"gateway",
"-e",
InetSocketAddress.createUnresolved(
SQL_GATEWAY_REST_ENDPOINT_EXTENSION.getTargetAddress(),
SQL_GATEWAY_REST_ENDPOINT_EXTENSION.getTargetPort())
.toString()
String.format(
"%s:%d",
SQL_GATEWAY_REST_ENDPOINT_EXTENSION.getTargetAddress(),
SQL_GATEWAY_REST_ENDPOINT_EXTENSION.getTargetPort())
};
String actual = runSqlClient(args, String.join("\n", "SET;", "QUIT;"), false);
assertThat(actual).contains(SecurityOptions.SSL_REST_ENABLED.key(), "true");
Expand Down

0 comments on commit 4e6dbe2

Please sign in to comment.