diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-04-29 17:39:02 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-06-20 15:01:28 +0200 |
commit | 175fb2670a2a24220afb3eea99b7b65b0aa89c76 (patch) | |
tree | da85efd385e80941b9b42ff36b93bad74b922f01 /src/test/sock_tests.cpp | |
parent | 8e7eeb5971444c0c93e9a89bbdcc3a51a19e09e9 (diff) |
net: remove now unused Sock::Release()
Diffstat (limited to 'src/test/sock_tests.cpp')
-rw-r--r-- | src/test/sock_tests.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/sock_tests.cpp b/src/test/sock_tests.cpp index 9e98f4f0b1..4a5b25c61b 100644 --- a/src/test/sock_tests.cpp +++ b/src/test/sock_tests.cpp @@ -69,16 +69,6 @@ BOOST_AUTO_TEST_CASE(move_assignment) BOOST_CHECK(SocketIsClosed(s)); } -BOOST_AUTO_TEST_CASE(release) -{ - SOCKET s = CreateSocket(); - Sock* sock = new Sock(s); - BOOST_CHECK_EQUAL(sock->Release(), s); - delete sock; - BOOST_CHECK(!SocketIsClosed(s)); - BOOST_REQUIRE(CloseSocket(s)); -} - BOOST_AUTO_TEST_CASE(reset) { const SOCKET s = CreateSocket(); |