Add TestEnvironment to tests

pull/23700/head
Esun Kim 4 years ago
parent ebeed0c459
commit 5112d75a46
  1. 2
      test/cpp/qps/inproc_sync_unary_ping_pong_test.cc
  2. 2
      test/cpp/qps/qps_interarrival_test.cc
  3. 1
      test/cpp/qps/qps_openloop_test.cc

@ -20,6 +20,7 @@
#include <grpc/support/log.h>
#include "test/core/util/test_config.h"
#include "test/cpp/qps/benchmark_config.h"
#include "test/cpp/qps/driver.h"
#include "test/cpp/qps/report.h"
@ -58,6 +59,7 @@ static void RunSynchronousUnaryPingPong() {
} // namespace grpc
int main(int argc, char** argv) {
grpc::testing::TestEnvironment env(argc, argv);
grpc::testing::InitTest(&argc, &argv, true);
grpc::testing::RunSynchronousUnaryPingPong();

@ -22,6 +22,7 @@
// Use the C histogram rather than C++ to avoid depending on proto
#include "test/core/util/histogram.h"
#include "test/core/util/test_config.h"
#include "test/cpp/qps/interarrival.h"
#include "test/cpp/util/test_config.h"
@ -52,6 +53,7 @@ static void RunTest(RandomDistInterface&& r, int threads,
using grpc::testing::ExpDist;
int main(int argc, char** argv) {
grpc::testing::TestEnvironment env(argc, argv);
grpc::testing::InitTest(&argc, &argv, true);
RunTest(ExpDist(10.0), 5, std::string("Exponential(10)"));

@ -62,6 +62,7 @@ static void RunQPS() {
} // namespace grpc
int main(int argc, char** argv) {
grpc::testing::TestEnvironment env(argc, argv);
grpc::testing::InitTest(&argc, &argv, true);
grpc::testing::RunQPS();

Loading…
Cancel
Save