Skip to content

Commit c0c5e77

Browse files
committed
Socket: Fix Socket test including IPV6 option for localhost
1 parent 2e3dbf0 commit c0c5e77

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Tests/Libraries/Socket/SocketTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

Tests/SCTest/SCTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)