Speed up actors open_close test.
This commit is contained in:
parent
84b1d32625
commit
3303fedabd
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user