diff --git a/TESTS/netsocket/dns/asynchronous_dns_multi_ip.cpp b/TESTS/netsocket/dns/asynchronous_dns_multi_ip.cpp index 7b405bb662..a8eea1ffd4 100644 --- a/TESTS/netsocket/dns/asynchronous_dns_multi_ip.cpp +++ b/TESTS/netsocket/dns/asynchronous_dns_multi_ip.cpp @@ -58,7 +58,7 @@ void do_getaddrinfo_async(const char hosts[][DNS_TEST_HOST_LEN], unsigned int op // Create callback semaphore and data rtos::Semaphore semaphore; dns_application_data_multi_ip *data = new dns_application_data_multi_ip[op_count]; - SocketAddress hints{{NSAPI_IPv4}, 80}; + SocketAddress hints{{NSAPI_UNSPEC}, 80}; unsigned int count = 0; for (unsigned int i = 0; i < op_count; i++) { diff --git a/TESTS/netsocket/dns/synchronous_dns_multi_ip.cpp b/TESTS/netsocket/dns/synchronous_dns_multi_ip.cpp index 5fa8ed80dc..4dc59a879d 100644 --- a/TESTS/netsocket/dns/synchronous_dns_multi_ip.cpp +++ b/TESTS/netsocket/dns/synchronous_dns_multi_ip.cpp @@ -42,7 +42,7 @@ void do_getaddrinfo(const char hosts[][DNS_TEST_HOST_LEN], unsigned int op_count (*exp_dns_failure) = 0; (*exp_timeout) = 0; - SocketAddress hints{{NSAPI_IPv4}, 80}; + SocketAddress hints{{NSAPI_UNSPEC}, 80}; for (unsigned int i = 0; i < op_count; i++) { SocketAddress *result; nsapi_error_t err = NetworkInterface::get_default_instance()->get_default_instance()->getaddrinfo(hosts[i], &hints, &result);