aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David G. Quintas <dgq@google.com>2016-12-19 16:07:27 -0800
committerGravatar GitHub <noreply@github.com>2016-12-19 16:07:27 -0800
commit89f33bfd9143123dea877fb1417c2e9329669a40 (patch)
tree6e75a642e218ad5a7a14de36c79c4f9646907065
parentf29de2619476622e61c894559f8885ca3cc8971c (diff)
parent7eef316e201e0674fff861cde55400aa4ed436be (diff)
Merge pull request #9143 from sreecha/fix_metrics_server
Fix metrics server
-rw-r--r--test/cpp/interop/stress_test.cc4
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