Fix tests logic.
This commit is contained in:
parent
8a5569bf08
commit
e8cd3d9af2
@ -71,7 +71,7 @@ TEST(Mtproto, GetHostByNameActor) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
cnt++;
|
cnt++;
|
||||||
send_closure(actor_id, &GetHostByNameActor::run, host, 443, prefer_ipv6, std::move(promise));
|
send_closure_later(actor_id, &GetHostByNameActor::run, host, 443, prefer_ipv6, std::move(promise));
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<std::string> hosts = {"127.0.0.2",
|
std::vector<std::string> hosts = {"127.0.0.2",
|
||||||
@ -177,11 +177,13 @@ TEST(Mtproto, config) {
|
|||||||
run(get_simple_config_firebase_firestore, false);
|
run(get_simple_config_firebase_firestore, false);
|
||||||
}
|
}
|
||||||
cnt--;
|
cnt--;
|
||||||
sched.start();
|
if (cnt != 0) {
|
||||||
while (sched.run_main(10)) {
|
sched.start();
|
||||||
// empty;
|
while (sched.run_main(10)) {
|
||||||
|
// empty;
|
||||||
|
}
|
||||||
|
sched.finish();
|
||||||
}
|
}
|
||||||
sched.finish();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(Mtproto, encrypted_config) {
|
TEST(Mtproto, encrypted_config) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user