test: fix test case failure issue

This commit is contained in:
Nick Peng
2023-06-14 22:40:12 +08:00
parent 45346705d8
commit 234c721011

View File

@@ -3498,6 +3498,8 @@ static int _dns_client_send_packet(struct dns_query_struct *query, void *packet,
atomic_inc(&query->dns_request_sent); atomic_inc(&query->dns_request_sent);
send_count++; send_count++;
errno = 0; errno = 0;
server_info->send_tick = get_tick_count();
switch (server_info->type) { switch (server_info->type) {
case DNS_SERVER_UDP: case DNS_SERVER_UDP:
/* udp query */ /* udp query */
@@ -3550,7 +3552,6 @@ static int _dns_client_send_packet(struct dns_query_struct *query, void *packet,
continue; continue;
} }
time(&server_info->last_send); time(&server_info->last_send);
server_info->send_tick = get_tick_count();
} }
pthread_mutex_unlock(&client.server_list_lock); pthread_mutex_unlock(&client.server_list_lock);