Skip to content
Snippets Groups Projects
Commit c5b39792 authored by Vijay Pai's avatar Vijay Pai
Browse files

test return value of rpc parse

parent 653803e3
No related branches found
No related tags found
No related merge requests found
...@@ -42,8 +42,7 @@ DEFINE_int32(num_servers, 1, "Number of server binaries"); ...@@ -42,8 +42,7 @@ DEFINE_int32(num_servers, 1, "Number of server binaries");
// Common config // Common config
DEFINE_bool(enable_ssl, false, "Use SSL"); DEFINE_bool(enable_ssl, false, "Use SSL");
DEFINE_string(rpc_type, "UNARY_TEST", DEFINE_string(rpc_type, "UNARY", "Type of RPC: UNARY or STREAMING");
"Type of RPC: UNARY_TEST or STREAMING_TEST");
// Server config // Server config
DEFINE_int32(server_threads, 1, "Number of server threads"); DEFINE_int32(server_threads, 1, "Number of server threads");
...@@ -77,7 +76,7 @@ int main(int argc, char **argv) { ...@@ -77,7 +76,7 @@ int main(int argc, char **argv) {
ParseCommandLineFlags(&argc, &argv, true); ParseCommandLineFlags(&argc, &argv, true);
RpcType rpc_type; RpcType rpc_type;
RpcType_Parse(FLAGS_rpc_type, &rpc_type); GPR_ASSERT(RpcType_Parse(FLAGS_rpc_type, &rpc_type));
ClientType client_type; ClientType client_type;
ServerType server_type; ServerType server_type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment