From 373916420ae5504041c710fa3216ef3b2d4de122 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Mon, 21 Dec 2015 22:04:00 +0200 Subject: [PATCH] [tests] Create less threads on the AsyncTask tests So we open less fds as new versions of OSX have a smaller limit (256). --- test/miscellaneous/async_task.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/miscellaneous/async_task.cpp b/test/miscellaneous/async_task.cpp index c1a2bd82e..c32c2396f 100644 --- a/test/miscellaneous/async_task.cpp +++ b/test/miscellaneous/async_task.cpp @@ -75,7 +75,7 @@ TEST(AsyncTask, RequestCoalescingMultithreaded) { std::vector>> threads; ThreadContext context = {"Test", ThreadType::Map, ThreadPriority::Regular}; - unsigned numThreads = 50; + unsigned numThreads = 25; for (unsigned i = 0; i < numThreads; ++i) { std::unique_ptr> thread = std::make_unique>(context, &async); @@ -99,7 +99,7 @@ TEST(AsyncTask, ThreadSafety) { AsyncTask async([&count] { ++count; }); async.unref(); - unsigned numThreads = 50; + unsigned numThreads = 25; auto callback = [&] { if (!--numThreads) {