default to prod server for tests

pull/14951/head
Eric Gribkoff 7 years ago
parent c9e35ce5fb
commit d9883f2482
  1. 9
      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();

Loading…
Cancel
Save