aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/dns
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/dns
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/dns')
-rw-r--r--library/cpp/dns/cache.cpp2
-rw-r--r--library/cpp/dns/ut/dns_ut.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/dns/cache.cpp b/library/cpp/dns/cache.cpp
index fe2bf56496e..05c14e82fce 100644
--- a/library/cpp/dns/cache.cpp
+++ b/library/cpp/dns/cache.cpp
@@ -122,7 +122,7 @@ namespace {
} else if (rt.Method == TResolveTask::Threaded) {
na = ThreadedResolve(host, rt.Info.Port);
} else {
- Y_ASSERT(0);
+ Y_ASSERT(0);
throw yexception() << TStringBuf("invalid resolve method");
}
diff --git a/library/cpp/dns/ut/dns_ut.cpp b/library/cpp/dns/ut/dns_ut.cpp
index edf8c8f431a..aae05a742c4 100644
--- a/library/cpp/dns/ut/dns_ut.cpp
+++ b/library/cpp/dns/ut/dns_ut.cpp
@@ -2,14 +2,14 @@
#include <library/cpp/dns/cache.h>
#include <util/network/address.h>
-Y_UNIT_TEST_SUITE(TestDNS) {
+Y_UNIT_TEST_SUITE(TestDNS) {
using namespace NDns;
- Y_UNIT_TEST(TestMagic) {
+ Y_UNIT_TEST(TestMagic) {
UNIT_ASSERT_EXCEPTION(CachedThrResolve(TResolveInfo("?", 80)), yexception);
}
- Y_UNIT_TEST(TestAsteriskAlias) {
+ Y_UNIT_TEST(TestAsteriskAlias) {
AddHostAlias("*", "localhost");
const TResolvedHost* rh = CachedThrResolve(TResolveInfo("yandex.ru", 80));
UNIT_ASSERT(rh != nullptr);