From 8133205cc6f135fa508640c3361f4ef9c0d080b0 Mon Sep 17 00:00:00 2001 From: Doug Fawley Date: Tue, 6 Oct 2020 16:21:32 -0700 Subject: [PATCH] fix route_guide again --- examples/examples_test.sh | 2 +- examples/route_guide/client/client.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/examples_test.sh b/examples/examples_test.sh index 7097c81ed58..9015272f33e 100755 --- a/examples/examples_test.sh +++ b/examples/examples_test.sh @@ -77,7 +77,7 @@ declare -A EXPECTED_SERVER_OUTPUT=( declare -A EXPECTED_CLIENT_OUTPUT=( ["helloworld"]="Greeting: Hello world" - ["route_guide"]="location:{latitude:416851321 longitude:-742674555}" + ["route_guide"]="Feature: name: \"\", point:(416851321, -742674555)" ["features/authentication"]="UnaryEcho: hello world" ["features/compression"]="UnaryEcho call returned \"compress\", " ["features/deadline"]="wanted = DeadlineExceeded, got = DeadlineExceeded" diff --git a/examples/route_guide/client/client.go b/examples/route_guide/client/client.go index 3e9d4e1183c..172f10fb308 100644 --- a/examples/route_guide/client/client.go +++ b/examples/route_guide/client/client.go @@ -72,7 +72,8 @@ func printFeatures(client pb.RouteGuideClient, rect *pb.Rectangle) { if err != nil { log.Fatalf("%v.ListFeatures(_) = _, %v", client, err) } - log.Println(feature) + log.Printf("Feature: name: %q, point:(%v, %v)", feature.GetName(), + feature.GetLocation().GetLatitude(), feature.GetLocation().GetLongitude()) } }