Skip to content

Commit 40b6f12

Browse files
authored
Merge pull request ARMmbed#12239 from tymoteuszblochmobica/testfix
Fix DNS multiple query hints to perform both IP4 and IP6 tests
2 parents 88f48d2 + d30dba2 commit 40b6f12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TESTS/netsocket/dns/asynchronous_dns_multi_ip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void do_getaddrinfo_async(const char hosts[][DNS_TEST_HOST_LEN], unsigned int op
6060
// Create callback semaphore and data
6161
rtos::Semaphore semaphore;
6262
dns_application_data_multi_ip *data = new dns_application_data_multi_ip[op_count];
63-
SocketAddress hints{{NSAPI_IPv4}, 80};
63+
SocketAddress hints{{NSAPI_UNSPEC}, 80};
6464

6565
unsigned int count = 0;
6666
for (unsigned int i = 0; i < op_count; i++) {

TESTS/netsocket/dns/synchronous_dns_multi_ip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void do_getaddrinfo(const char hosts[][DNS_TEST_HOST_LEN], unsigned int op_count
4242
(*exp_dns_failure) = 0;
4343
(*exp_timeout) = 0;
4444

45-
SocketAddress hints{{NSAPI_IPv4}, 80};
45+
SocketAddress hints{{NSAPI_UNSPEC}, 80};
4646
for (unsigned int i = 0; i < op_count; i++) {
4747
SocketAddress *result;
4848
nsapi_error_t err = NetworkInterface::get_default_instance()->get_default_instance()->getaddrinfo(hosts[i], &hints, &result);

0 commit comments

Comments
 (0)