From 95d3d93bb9791009f6b61d5dafa5ffb3a2ed499a Mon Sep 17 00:00:00 2001 From: Vignesh Babu Date: Wed, 31 Jan 2024 19:59:39 +0000 Subject: [PATCH] [testing] Update max fd limit in test. --- test/core/iomgr/fd_conservation_posix_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/core/iomgr/fd_conservation_posix_test.cc b/test/core/iomgr/fd_conservation_posix_test.cc index 5081d5de5f8..2c7d8b7c699 100644 --- a/test/core/iomgr/fd_conservation_posix_test.cc +++ b/test/core/iomgr/fd_conservation_posix_test.cc @@ -39,9 +39,9 @@ int main(int argc, char** argv) { // set max # of file descriptors to a low value, and // verify we can create and destroy many more than this number // of descriptors - rlim.rlim_cur = rlim.rlim_max = 10; + rlim.rlim_cur = rlim.rlim_max = 1000; GPR_ASSERT(0 == setrlimit(RLIMIT_NOFILE, &rlim)); - for (i = 0; i < 100; i++) { + for (i = 0; i < 10000; i++) { p = grpc_iomgr_create_endpoint_pair("test", nullptr); grpc_endpoint_destroy(p.client); grpc_endpoint_destroy(p.server);