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 @@ -65,7 +65,8 @@ void SC::SocketTest::resolveDNS()
6565 char buffer[256 ] = {0 };
6666 Span<char > ipAddress = {buffer};
6767 SC_TEST_EXPECT (SocketDNS::resolveDNS (" localhost" , ipAddress));
68- SC_TEST_EXPECT (StringView (ipAddress, true , StringEncoding::Ascii) == " 127.0.0.1" );
68+ StringView ipString = StringView (ipAddress, true , StringEncoding::Ascii);
69+ SC_TEST_EXPECT (ipString == " 127.0.0.1" or ipString == " ::1" );
6970 // ! [resolveDNSSnippet]
7071}
7172
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ int main(int argc, const char* argv[])
146146 }
147147 SC_ASSERT_RELEASE (report.libraryRootDirectory .assign (correctedPath.view ()));
148148 report.debugBreakOnFailedTest = true ;
149- runTimeTest (report);
149+
150150 // Foundation tests
151151 runBaseTest (report);
152152 runStringSpanTest (report);
You can’t perform that action at this time.
0 commit comments