Speed up actors open_close test.

This commit is contained in:
levlam 2021-12-27 19:13:45 +03:00
parent 84b1d32625
commit 3303fedabd

View File

@ -301,11 +301,7 @@ class OpenClose final : public td::Actor {
TEST(Actors, open_close) {
td::ConcurrentScheduler scheduler;
scheduler.init(2);
int cnt = 1000000;
#if TD_WINDOWS || TD_ANDROID
// TODO(perf) optimize
cnt = 100;
#endif
int cnt = 10000; // TODO(perf) optimize
scheduler.create_actor_unsafe<OpenClose>(1, "A", cnt).release();
scheduler.create_actor_unsafe<OpenClose>(2, "B", cnt).release();
scheduler.start();