dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.47k stars 4.76k forks source link

System.Net.NameResolution.Functional.Tests fails on iOS/tvOS #51377

Open mdh1418 opened 3 years ago

mdh1418 commented 3 years ago

System.Net.NameResolution.Functional.Tests System.Net.NameResolution.Tests.GetHostEntryTest.Dns_GetHostEntry_HostString_Ok System.Net.NameResolution.Tests.GetHostEntryTest.Dns_GetHostEntryAsync_HostString_Ok System.Net.NameResolution.Tests.GetHostByNameTest.DnsObsoleteBeginEndGetHostByName_EmptyString_ReturnsHostName System.Net.NameResolution.Tests.GetHostByNameTest.DnsObsoleteGetHostByName_EmptyString_ReturnsHostName


System.Net.NameResolution.Functional.Tests.dll   Failed: 4

Test collection for System.Net.NameResolution.Tests.GetHostEntryTest
System.Net.NameResolution.Tests.GetHostEntryTest.Dns_GetHostEntry_HostString_Ok(hostName: \"\")
    System.Exception : Failed for empty hostname.\nDns.GetHostName() == dci-mac-build-193\ngetHostEntryException==System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): nodename nor servname provided, or not known\n   at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily)\n   at System.Net.Dns.GetHostEntryCore(String hostName, AddressFamily addressFamily)\n   at System.Net.Dns.GetHostEntry(String hostNameOrAddress, AddressFamily family)\n   at System.Net.Dns.GetHostEntry(String hostNameOrAddress)\n   at System.Net.NameResolution.Tests.GetHostEntryTest.Dns_GetHostEntry_HostString_Ok(String hostName)\netcHostsException==\n/etc/host ==\n##\n# Host Database\n#\n# localhost is used to configure the loopback interface\n# when the system is booting.  Do not change this entry.\n##\n127.0.0.1\tlocalhost\n255.255.255.255\tbroadcasthost\n::1             localhost\n\n---- System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : nodename nor servname provided, or not known
System.Net.NameResolution.Tests.GetHostEntryTest.Dns_GetHostEntryAsync_HostString_Ok(hostName: \"\")
    System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : nodename nor servname provided, or not known

Test collection for System.Net.NameResolution.Tests.GetHostByNameTest
System.Net.NameResolution.Tests.GetHostByNameTest.DnsObsoleteBeginEndGetHostByName_EmptyString_ReturnsHostName
    System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : nodename nor servname provided, or not known
System.Net.NameResolution.Tests.GetHostByNameTest.DnsObsoleteGetHostByName_EmptyString_ReturnsHostName
    System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : nodename nor servname provided, or not known
ghost commented 3 years ago

Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.

Issue Details
System.Net.NameResolution.Functional.Tests System.Net.NameResolution.Tests.GetHostEntryTest.Dns_GetHostEntry_HostString_Ok System.Net.NameResolution.Tests.GetHostEntryTest.Dns_GetHostEntryAsync_HostString_Ok System.Net.NameResolution.Tests.GetHostByNameTest.DnsObsoleteBeginEndGetHostByName_EmptyString_ReturnsHostName System.Net.NameResolution.Tests.GetHostByNameTest.DnsObsoleteGetHostByName_EmptyString_ReturnsHostName ``` System.Net.NameResolution.Functional.Tests.dll Failed: 4 Test collection for System.Net.NameResolution.Tests.GetHostEntryTest System.Net.NameResolution.Tests.GetHostEntryTest.Dns_GetHostEntry_HostString_Ok(hostName: \"\") System.Exception : Failed for empty hostname.\nDns.GetHostName() == dci-mac-build-193\ngetHostEntryException==System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): nodename nor servname provided, or not known\n at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily)\n at System.Net.Dns.GetHostEntryCore(String hostName, AddressFamily addressFamily)\n at System.Net.Dns.GetHostEntry(String hostNameOrAddress, AddressFamily family)\n at System.Net.Dns.GetHostEntry(String hostNameOrAddress)\n at System.Net.NameResolution.Tests.GetHostEntryTest.Dns_GetHostEntry_HostString_Ok(String hostName)\netcHostsException==\n/etc/host ==\n##\n# Host Database\n#\n# localhost is used to configure the loopback interface\n# when the system is booting. Do not change this entry.\n##\n127.0.0.1\tlocalhost\n255.255.255.255\tbroadcasthost\n::1 localhost\n\n---- System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : nodename nor servname provided, or not known System.Net.NameResolution.Tests.GetHostEntryTest.Dns_GetHostEntryAsync_HostString_Ok(hostName: \"\") System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : nodename nor servname provided, or not known Test collection for System.Net.NameResolution.Tests.GetHostByNameTest System.Net.NameResolution.Tests.GetHostByNameTest.DnsObsoleteBeginEndGetHostByName_EmptyString_ReturnsHostName System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : nodename nor servname provided, or not known System.Net.NameResolution.Tests.GetHostByNameTest.DnsObsoleteGetHostByName_EmptyString_ReturnsHostName System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : nodename nor servname provided, or not known
Author: mdh1418
Assignees: -
Labels: `area-System.Net`, `os-ios`, `os-tvos`, `untriaged`
Milestone: 6.0.0
kotlarmilos commented 1 year ago

The tests are passing both locally on a device and on tvOS CI pipeline.