aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Eric Gribkoff <ericgribkoff@google.com>2018-04-06 10:30:10 -0700
committerGravatar Eric Gribkoff <ericgribkoff@google.com>2018-04-06 10:30:10 -0700
commitd9883f2482704f9cfba62e76757f46d153efcd69 (patch)
treedf710021ba91bf579dcc48e81bf4ebfc8ecd0530
parentc9e35ce5fb22d73696bddb4e2e1dda0d07fb1045 (diff)
default to prod server for tests
-rw-r--r--src/android/test/interop/app/src/androidTest/java/io/grpc/interop/cpp/InteropTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/android/test/interop/app/src/androidTest/java/io/grpc/interop/cpp/InteropTest.java b/src/android/test/interop/app/src/androidTest/java/io/grpc/interop/cpp/InteropTest.java
index f7398bdd70..d1bc259de1 100644
--- a/src/android/test/interop/app/src/androidTest/java/io/grpc/interop/cpp/InteropTest.java
+++ b/src/android/test/interop/app/src/androidTest/java/io/grpc/interop/cpp/InteropTest.java
@@ -37,11 +37,12 @@ public class InteropTest {
@Before
public void setUp() throws Exception {
- host = InstrumentationRegistry.getArguments().getString("server_host", "10.0.2.2");
- port =
- Integer.parseInt(InstrumentationRegistry.getArguments().getString("server_port", "8080"));
+ host =
+ InstrumentationRegistry.getArguments()
+ .getString("server_host", "grpc-test.sandbox.googleapis.com");
+ port = Integer.parseInt(InstrumentationRegistry.getArguments().getString("server_port", "443"));
useTls =
- Boolean.parseBoolean(InstrumentationRegistry.getArguments().getString("use_tls", "false"));
+ Boolean.parseBoolean(InstrumentationRegistry.getArguments().getString("use_tls", "true"));
if (useTls) {
Context ctx = InstrumentationRegistry.getTargetContext();