aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/iomgr
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-09-06 09:09:27 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-09-06 09:09:27 -0700
commitf4e5802c2ea37ff20d38ff0565befde19db28f1e (patch)
tree3f4d5a65d202751ae18987cc5b6bf7c5a450458f /test/core/iomgr
parent3e3dd080877be8951ce35f98711b3932291d04bb (diff)
Fix ASAN detected failure
Diffstat (limited to 'test/core/iomgr')
-rw-r--r--test/core/iomgr/fd_conservation_posix_test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/core/iomgr/fd_conservation_posix_test.c b/test/core/iomgr/fd_conservation_posix_test.c
index 3c61173ecd..d29b1e8e41 100644
--- a/test/core/iomgr/fd_conservation_posix_test.c
+++ b/test/core/iomgr/fd_conservation_posix_test.c
@@ -30,9 +30,8 @@ int main(int argc, char **argv) {
grpc_endpoint_pair p;
grpc_test_init(argc, argv);
+ grpc_init();
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;
- grpc_iomgr_init(&exec_ctx);
- grpc_iomgr_start(&exec_ctx);
/* set max # of file descriptors to a low value, and
verify we can create and destroy many more than this number
@@ -51,7 +50,7 @@ int main(int argc, char **argv) {
grpc_resource_quota_unref(resource_quota);
- grpc_iomgr_shutdown(&exec_ctx);
grpc_exec_ctx_finish(&exec_ctx);
+ grpc_shutdown();
return 0;
}