File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ Case cases[] = {
187
187
Case (" ASYNCHRONOUS_DNS" , ASYNCHRONOUS_DNS),
188
188
Case (" ASYNCHRONOUS_DNS_SIMULTANEOUS" , ASYNCHRONOUS_DNS_SIMULTANEOUS),
189
189
Case (" ASYNCHRONOUS_DNS_SIMULTANEOUS_CACHE" , ASYNCHRONOUS_DNS_SIMULTANEOUS_CACHE),
190
+ Case (" SYNCHRONOUS_DNS_CACHE" , SYNCHRONOUS_DNS_CACHE),
190
191
#ifndef MBED_CONF_CELLULAR_OFFLOAD_DNS_QUERIES
191
192
Case (" ASYNCHRONOUS_DNS_CACHE" , ASYNCHRONOUS_DNS_CACHE),
192
193
#endif
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ void SYNCHRONOUS_DNS_CACHE()
40
40
for (unsigned int i = 0 ; i < 5 ; i++) {
41
41
SocketAddress address;
42
42
int started_us = ticker_us;
43
- nsapi_error_t err = get_interface ()->gethostbyname (dns_test_hosts_second [0 ], &address);
43
+ nsapi_error_t err = get_interface ()->gethostbyname (dns_test_hosts [0 ], &address);
44
44
45
45
int delay_ms = (ticker_us - started_us) / 1000 ;
46
46
@@ -49,6 +49,6 @@ void SYNCHRONOUS_DNS_CACHE()
49
49
TEST_ASSERT_TRUE (i == 0 || delay_ms <= delay_first);
50
50
51
51
printf (" DNS: query \" %s\" => \" %s\" , time %i ms\n " ,
52
- dns_test_hosts_second [0 ], address.get_ip_address (), delay_ms);
52
+ dns_test_hosts [0 ], address.get_ip_address (), delay_ms);
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments