tests: run FaceUri canonization tests sequentially
Many of these tests issue DNS queries and it seems that Boost.Asio
performs only one resolution at a time (on a single io_service).
Therefore, parallelization is pointless and can in fact cause later
queries to spuriously timeout if those scheduled earlier take a long
time to finish.
Change-Id: I07e3dba5662626fd988ff0c7363f043319ee737d
diff --git a/tests/unit/net/dns.t.cpp b/tests/unit/net/dns.t.cpp
index 374eeea..b6a24b5 100644
--- a/tests/unit/net/dns.t.cpp
+++ b/tests/unit/net/dns.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2013-2021 Regents of the University of California.
+ * Copyright (c) 2013-2022 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -128,7 +128,7 @@
SKIP_IF_IPV4_UNAVAILABLE();
SKIP_IF_IPV6_UNAVAILABLE();
- asyncResolve("www.named-data.net",
+ asyncResolve("named-data.net",
std::bind(&DnsFixture::onSuccess, this, _1, IpAddress(address_v4()), true, false),
[this] (auto&&...) { onFailure(false); },
m_ioService, Ipv4Only());
@@ -162,7 +162,7 @@
{
SKIP_IF_IP_UNAVAILABLE();
- IpAddress address = syncResolve("www.named-data.net", m_ioService);
+ IpAddress address = syncResolve("named-data.net", m_ioService);
BOOST_CHECK(address.is_v4() || address.is_v6());
}