diff options
author | shotinleg <[email protected]> | 2022-02-10 16:52:01 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:52:01 +0300 |
commit | f79012ccbc48d4068bc9f0fc0712689b8b0dfb5f (patch) | |
tree | ab7fbbf3253d4c0e2793218f09378908beb025fb /util/network/endpoint_ut.cpp | |
parent | 3acb0d236fd0f37bbc1c8ba7f3660464d9592089 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/network/endpoint_ut.cpp')
-rw-r--r-- | util/network/endpoint_ut.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/util/network/endpoint_ut.cpp b/util/network/endpoint_ut.cpp index 28590646de8..d5e40dd6e1c 100644 --- a/util/network/endpoint_ut.cpp +++ b/util/network/endpoint_ut.cpp @@ -106,18 +106,18 @@ Y_UNIT_TEST_SUITE(TEndpointTest) { UNIT_ASSERT(!(ep1 == ep3)); UNIT_ASSERT(!(ep1 == ep4)); } - - Y_UNIT_TEST(TestIsUnixSocket) { - TNetworkAddress na1(TUnixSocketPath("/tmp/unixsocket")); - TEndpoint ep1(new NAddr::TAddrInfo(&*na1.Begin())); - - TNetworkAddress na2("2a02:6b8:0:1410::5f6c:f3c2", 24242); - TEndpoint ep2(new NAddr::TAddrInfo(&*na2.Begin())); - - UNIT_ASSERT(ep1.IsUnix()); - UNIT_ASSERT(ep1.SockAddr()->sa_family == AF_UNIX); - - UNIT_ASSERT(!ep2.IsUnix()); - UNIT_ASSERT(ep2.SockAddr()->sa_family != AF_UNIX); - } + + Y_UNIT_TEST(TestIsUnixSocket) { + TNetworkAddress na1(TUnixSocketPath("/tmp/unixsocket")); + TEndpoint ep1(new NAddr::TAddrInfo(&*na1.Begin())); + + TNetworkAddress na2("2a02:6b8:0:1410::5f6c:f3c2", 24242); + TEndpoint ep2(new NAddr::TAddrInfo(&*na2.Begin())); + + UNIT_ASSERT(ep1.IsUnix()); + UNIT_ASSERT(ep1.SockAddr()->sa_family == AF_UNIX); + + UNIT_ASSERT(!ep2.IsUnix()); + UNIT_ASSERT(ep2.SockAddr()->sa_family != AF_UNIX); + } } |