diff options
author | Sree Kuchibhotla <sreek@google.com> | 2016-12-16 11:30:35 -0800 |
---|---|---|
committer | Sree Kuchibhotla <sreek@google.com> | 2016-12-16 11:30:35 -0800 |
commit | 7eef316e201e0674fff861cde55400aa4ed436be (patch) | |
tree | 44eac6861e046237ed8fca1a8cbd89e1175b4e66 | |
parent | b229094678502e2606164a3240dbc8375ad403b5 (diff) |
Fix metrics server
-rw-r--r-- | test/cpp/interop/stress_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/interop/stress_test.cc b/test/cpp/interop/stress_test.cc index fc35db5233..97e658869f 100644 --- a/test/cpp/interop/stress_test.cc +++ b/test/cpp/interop/stress_test.cc @@ -371,9 +371,9 @@ int main(int argc, char** argv) { } // Start metrics server before waiting for the stress test threads + std::unique_ptr<grpc::Server> metrics_server; if (FLAGS_metrics_port > 0) { - std::unique_ptr<grpc::Server> metrics_server = - metrics_service.StartServer(FLAGS_metrics_port); + metrics_server = metrics_service.StartServer(FLAGS_metrics_port); } // Wait for the stress test threads to complete |