diff --git a/test/oatpp-websocket/FullAsyncTest.cpp b/test/oatpp-websocket/FullAsyncTest.cpp index bf311ac..8b4bc9c 100644 --- a/test/oatpp-websocket/FullAsyncTest.cpp +++ b/test/oatpp-websocket/FullAsyncTest.cpp @@ -41,7 +41,7 @@ class TestComponent { }()); OATPP_CREATE_COMPONENT(std::shared_ptr, virtualInterface)([] { - return oatpp::network::virtual_::Interface::createShared("virtualhost"); + return oatpp::network::virtual_::Interface::obtainShared("virtualhost"); }()); OATPP_CREATE_COMPONENT(std::shared_ptr, serverConnectionProvider)([] { diff --git a/test/oatpp-websocket/FullTest.cpp b/test/oatpp-websocket/FullTest.cpp index 61add54..7e41479 100644 --- a/test/oatpp-websocket/FullTest.cpp +++ b/test/oatpp-websocket/FullTest.cpp @@ -33,7 +33,7 @@ class TestComponent { public: OATPP_CREATE_COMPONENT(std::shared_ptr, virtualInterface)([] { - return oatpp::network::virtual_::Interface::createShared("virtualhost"); + return oatpp::network::virtual_::Interface::obtainShared("virtualhost"); }()); OATPP_CREATE_COMPONENT(std::shared_ptr, serverConnectionProvider)([] {