-
Notifications
You must be signed in to change notification settings - Fork 180
Fix failing test cases for DNS unit tests #663
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix failing test cases for DNS unit tests #663
Conversation
…FreeRTOS-Plus-TCP into fix_dns_parser_test_cases
source/FreeRTOS_DNS.c
Outdated
pxEndPoint = prvFillSockAddress( &xAddress, pcHostName ); | ||
|
||
xDNS_IP_Preference = xDNS_IP_Preference_Temp; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this neeeded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought of restoring back the xDNS_IP_Preference
(if it was something else before) after we are done with the function call. Maybe we can remove that as xDNS_IP_Preference
is not used anywhere else.
Description
This PR fixes the failing test cases for DNS unit tests which were failing after the IPv6 integration changes.
NOTE: The unit test:
test_CreateSocket_bind_fail
from DNS_Networking unit test module has been removed as its not relevant to theDNS_CreateSocket
function after IPv6 integration changes. The flow of binding is validated in a different test case (as part of the test cases forFreeRTOS_gethostbyname
) instead.Test Steps
Related Issue
DNS unit test cases were failing due to the changes in the source code as part of the IPv6 integration
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.