aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/util/grpc_cli.cc
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2016-09-09 20:05:37 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2016-12-15 16:10:37 -0800
commitd37f642f359cb7fd7405831e675abb93fd4704e2 (patch)
treec91596b19971b347cd039c99051818ddf4dd7eda /test/cpp/util/grpc_cli.cc
parentf9329217b1ce334a19b8720f70a17ce8f5d5db23 (diff)
Support server streaming
Skip unparsable input Add tests for uni-directional stream calls Simplify client stream handling
Diffstat (limited to 'test/cpp/util/grpc_cli.cc')
-rw-r--r--test/cpp/util/grpc_cli.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/util/grpc_cli.cc b/test/cpp/util/grpc_cli.cc
index fe248601ee..fe68ccb619 100644
--- a/test/cpp/util/grpc_cli.cc
+++ b/test/cpp/util/grpc_cli.cc
@@ -83,10 +83,10 @@ DEFINE_string(outfile, "", "Output file (default is stdout)");
static bool SimplePrint(const grpc::string& outfile,
const grpc::string& output) {
if (outfile.empty()) {
- std::cout << output;
+ std::cout << output << std::endl;
} else {
std::ofstream output_file(outfile, std::ios::trunc | std::ios::binary);
- output_file << output;
+ output_file << output << std::endl;
output_file.close();
}
return true;