Fix Client_SimpleMulti test on macOS.

This commit is contained in:
levlam 2020-11-22 16:26:00 +03:00
parent cb86d38913
commit 6044ee83fb
2 changed files with 2 additions and 2 deletions

View File

@ -417,7 +417,7 @@ class MultiImplPool {
if (impls_.empty()) { if (impls_.empty()) {
init_openssl_threads(); init_openssl_threads();
impls_.resize(clamp(thread::hardware_concurrency(), 8u, 1000u) * 5 / 4); impls_.resize(clamp(thread::hardware_concurrency(), 8u, 24u) * 5 / 4);
net_query_stats_ = std::make_shared<NetQueryStats>(); net_query_stats_ = std::make_shared<NetQueryStats>();
} }

View File

@ -868,7 +868,7 @@ TEST(Client, Simple) {
} }
TEST(Client, SimpleMulti) { TEST(Client, SimpleMulti) {
std::vector<td::Client> clients(50); std::vector<td::Client> clients(40);
//for (auto &client : clients) { //for (auto &client : clients) {
//client.execute({1, td::td_api::make_object<td::td_api::setLogTagVerbosityLevel>("td_requests", 1)}); //client.execute({1, td::td_api::make_object<td::td_api::setLogTagVerbosityLevel>("td_requests", 1)});
//} //}