summaryrefslogtreecommitdiff
path: root/test/miscellaneous
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-12-21 22:04:00 +0200
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-12-21 22:22:11 +0200
commit373916420ae5504041c710fa3216ef3b2d4de122 (patch)
tree073a8b0c91872442668adb589e8f25b800ff2ff5 /test/miscellaneous
parent913f49c701781a4621c7f273d0ec937f9bf92697 (diff)
downloadqtlocation-mapboxgl-373916420ae5504041c710fa3216ef3b2d4de122.tar.gz
[tests] Create less threads on the AsyncTask tests
So we open less fds as new versions of OSX have a smaller limit (256).
Diffstat (limited to 'test/miscellaneous')
-rw-r--r--test/miscellaneous/async_task.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/miscellaneous/async_task.cpp b/test/miscellaneous/async_task.cpp
index c1a2bd82e0..c32c2396fb 100644
--- a/test/miscellaneous/async_task.cpp
+++ b/test/miscellaneous/async_task.cpp
@@ -75,7 +75,7 @@ TEST(AsyncTask, RequestCoalescingMultithreaded) {
std::vector<std::unique_ptr<Thread<TestWorker>>> 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<TestWorker>> thread =
std::make_unique<Thread<TestWorker>>(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) {