Skip to content

Commit fe230ec

Browse files
TEMP: Debug failing Java test.
1 parent 6a596e5 commit fe230ec

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ env:
8787
# We should always utilize all 5 slots because the cost of the setup is high (up to one minute).
8888
# NOTE: Use "" if you specify a space separated list of multiple targets.
8989
- TEST_MATRIX="-shard 0"
90-
- TEST_MATRIX="-shard 1"
91-
- TEST_MATRIX="-shard 2"
92-
- TEST_MATRIX="-shard 3"
93-
- TEST_MATRIX="-shard 4"
90+
# - TEST_MATRIX="-shard 1"
91+
# - TEST_MATRIX="-shard 2"
92+
# - TEST_MATRIX="-shard 3"
93+
# - TEST_MATRIX="-shard 4"
9494
before_install:
9595
- travis/download_mariadb.sh
9696
# TODO: uncomment when php crashing is fixed
@@ -120,7 +120,7 @@ script:
120120
go run test.go $TEST_FLAGS $TEST_MATRIX
121121
else
122122
# Exclude webdriver tests on Travis PRs since the sauce addon does not work for PRs
123-
go run test.go $TEST_FLAGS $TEST_MATRIX -exclude=webdriver
123+
go run test.go $TEST_FLAGS -exclude=webdriver java
124124
fi
125125
after_script:
126126
# Stop Sauce Connect at the end

java/client/src/test/java/io/vitess/client/RpcClientTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ private static Map<String, String> getEcho(Cursor cursor) throws Exception {
140140

141141
@Test
142142
public void testEchoExecute() throws Exception {
143+
System.out.format("using client %s\n", client);
144+
143145
Map<String, String> echo;
144146

145147
echo = getEcho(conn.execute(ctx, ECHO_PREFIX + QUERY, BIND_VARS, TABLET_TYPE, ALL_FIELDS));

java/grpc-client/src/test/java/io/client/grpc/GrpcClientTlsTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,11 @@ private static void startVtgate() throws Exception {
125125
final String cert = certDirectory.getCanonicalPath() + File.separatorChar + "server-cert.pem";
126126
final String key = certDirectory.getCanonicalPath() + File.separatorChar + "server-key.pem";
127127

128-
final String vtgate = String.format("%s -grpc_cert %s -grpc_key %s -logtostderr -grpc_port %s -service_map grpc-vtgateservice",
128+
final String vtgate = String.format("%s -grpc_cert %s -grpc_key %s -logtostderr -grpc_port %d -service_map grpc-vtgateservice",
129129
vtRoot + "/bin/vtgateclienttest",
130130
cert,
131131
key,
132-
Integer.toString(port)
133-
);
132+
port);
134133
System.out.println(vtgate);
135134
vtgateclienttest = new ProcessBuilder().inheritIO().command(vtgate.split(" ")).start();
136135
Thread.sleep(TimeUnit.SECONDS.toMillis(10));
@@ -148,6 +147,7 @@ private static void createClientConnection() throws Exception {
148147
new InetSocketAddress("localhost", port),
149148
tlsOptions
150149
);
150+
System.out.format("Creating GrpcClient %s with port: %d\n", client, port);
151151
}
152152

153153
}

0 commit comments

Comments
 (0)