summaryrefslogtreecommitdiffstats
path: root/tests/Network/NameLookup.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-05-20 20:59:46 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-07-26 19:57:48 +0200
commit072fdf348826db6bc75207540c55e8e275227516 (patch)
tree433cf29095b8796dd737790fa0be693b1b836613 /tests/Network/NameLookup.cpp
parent1.14 connection support (diff)
downloadcuberite-SeeBackup.tar
cuberite-SeeBackup.tar.gz
cuberite-SeeBackup.tar.bz2
cuberite-SeeBackup.tar.lz
cuberite-SeeBackup.tar.xz
cuberite-SeeBackup.tar.zst
cuberite-SeeBackup.zip
Diffstat (limited to 'tests/Network/NameLookup.cpp')
-rw-r--r--tests/Network/NameLookup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Network/NameLookup.cpp b/tests/Network/NameLookup.cpp
index 2904a0199..1ae6c3bbc 100644
--- a/tests/Network/NameLookup.cpp
+++ b/tests/Network/NameLookup.cpp
@@ -52,7 +52,7 @@ static void DoTest(void)
// Look up google.com (has multiple IP addresses):
LOGD("Network test: Looking up google.com");
- if (!cNetwork::HostnameToIP("google.com", std::make_shared<cFinishLookupCallbacks>(evtFinish)))
+ if (!cNetwork::HostnameToIP("google.com", std::make_unique<cFinishLookupCallbacks>(evtFinish)))
{
LOGWARNING("Cannot resolve google.com to IP");
abort();
@@ -63,7 +63,7 @@ static void DoTest(void)
// Look up 8.8.8.8 (Google free DNS):
LOGD("Network test: Looking up IP 8.8.8.8");
- if (!cNetwork::IPToHostName("8.8.8.8", std::make_shared<cFinishLookupCallbacks>(evtFinish)))
+ if (!cNetwork::IPToHostName("8.8.8.8", std::make_unique<cFinishLookupCallbacks>(evtFinish)))
{
LOGWARNING("Cannot resolve 8.8.8.8 to name");
abort();