GetHostByName: better test
GitOrigin-RevId: 2be0f5e7b3122c7fd9122fcab763dffcad3d47ab
This commit is contained in:
parent
311cd72feb
commit
2a0db51cd9
@ -58,7 +58,7 @@ TEST(Mtproto, GetHostByName) {
|
|||||||
GetHostByNameActor::resolve(host, options, std::move(promise)).release();
|
GetHostByNameActor::resolve(host, options, std::move(promise)).release();
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<std::string> hosts = {"127.0.0.2", "1.1.1.1", "localhost", "web.telegram.org"};
|
std::vector<std::string> hosts = {"127.0.0.2", "1.1.1.1", "localhost", "web.telegram.org", "москва.рф"};
|
||||||
for (auto host : hosts) {
|
for (auto host : hosts) {
|
||||||
for (auto type : {GetHostByNameActor::ResolveType::Native, GetHostByNameActor::ResolveType::Google,
|
for (auto type : {GetHostByNameActor::ResolveType::Native, GetHostByNameActor::ResolveType::Google,
|
||||||
GetHostByNameActor::ResolveType::All}) {
|
GetHostByNameActor::ResolveType::All}) {
|
||||||
|
Reference in New Issue
Block a user