From c5b397927cfa7dc131dd06d95f91e9c76d869909 Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Mon, 23 Mar 2015 10:46:37 -0700 Subject: [PATCH] test return value of rpc parse --- test/cpp/qps/qps_driver.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/cpp/qps/qps_driver.cc b/test/cpp/qps/qps_driver.cc index 764fe136a81..f531094c774 100644 --- a/test/cpp/qps/qps_driver.cc +++ b/test/cpp/qps/qps_driver.cc @@ -42,8 +42,7 @@ DEFINE_int32(num_servers, 1, "Number of server binaries"); // Common config DEFINE_bool(enable_ssl, false, "Use SSL"); -DEFINE_string(rpc_type, "UNARY_TEST", - "Type of RPC: UNARY_TEST or STREAMING_TEST"); +DEFINE_string(rpc_type, "UNARY", "Type of RPC: UNARY or STREAMING"); // Server config DEFINE_int32(server_threads, 1, "Number of server threads"); @@ -77,7 +76,7 @@ int main(int argc, char **argv) { ParseCommandLineFlags(&argc, &argv, true); RpcType rpc_type; - RpcType_Parse(FLAGS_rpc_type, &rpc_type); + GPR_ASSERT(RpcType_Parse(FLAGS_rpc_type, &rpc_type)); ClientType client_type; ServerType server_type;