aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/util/port_server_client.h
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-02-17 10:27:56 -0800
committerGravatar Craig Tiller <ctiller@google.com>2017-02-17 10:27:56 -0800
commitcba864bfbe7b7d3afb3dbe43289a20872489d172 (patch)
treeeb60c7341d5ded1edf9510ecfdccd0045551a657 /test/core/util/port_server_client.h
parent13e185419cd177b7fb552601665e43820321a96b (diff)
Eliminate port server env var, force its use always, consolidate code
Diffstat (limited to 'test/core/util/port_server_client.h')
-rw-r--r--test/core/util/port_server_client.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/core/util/port_server_client.h b/test/core/util/port_server_client.h
index 437006495c..70471ecb8a 100644
--- a/test/core/util/port_server_client.h
+++ b/test/core/util/port_server_client.h
@@ -36,7 +36,10 @@
// C interface to port_server.py
-int grpc_pick_port_using_server(char *server);
-void grpc_free_port_using_server(char *server, int port);
+// must be synchronized with tools/run_tests/python_utils/start_port_server.py
+#define GRPC_PORT_SERVER_ADDRESS "localhost:32766"
+
+int grpc_pick_port_using_server(void);
+void grpc_free_port_using_server(int port);
#endif // GRPC_TEST_CORE_UTIL_PORT_SERVER_CLIENT_H