Skip to content

Commit

Permalink
[FLINK-31911][sql][tests] Fix address address construction
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol authored Apr 27, 2023
1 parent a336863 commit 146847e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
Expand Down Expand Up @@ -148,10 +147,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("execution.target", "yarn-session");
Expand Down

0 comments on commit 146847e

Please sign in to comment.