aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/memory_usage/client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/memory_usage/client.cc')
-rw-r--r--test/core/memory_usage/client.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/core/memory_usage/client.cc b/test/core/memory_usage/client.cc
index 3c3fa53b51..467586ea5f 100644
--- a/test/core/memory_usage/client.cc
+++ b/test/core/memory_usage/client.cc
@@ -193,11 +193,11 @@ int main(int argc, char** argv) {
gpr_cmdline* cl;
grpc_event event;
- grpc_init();
-
GPR_ASSERT(argc >= 1);
fake_argv[0] = argv[0];
- grpc_test_init(1, fake_argv);
+ grpc::testing::TestEnvironment env(1, fake_argv);
+
+ grpc_init();
int warmup_iterations = 100;
int benchmark_iterations = 1000;