mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-20 19:51:54 +00:00
Fixed unit test errors
This commit is contained in:
1 parent
a50b7591ca
commit
0ed70c4d9f
1 file changed
+6
-8
+6
-8
@@ -3427,17 +3427,15 @@ TEST(CleanupTest, WSACleanup) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// #ifndef CPPHTTPLIB_OPENSSL_SUPPORT
|
#ifndef CPPHTTPLIB_OPENSSL_SUPPORT
|
||||||
// TEST(NoSSLSupport, SimpleInterface) {
|
TEST(NoSSLSupport, SimpleInterface) {
|
||||||
// Client cli("https://yahoo.com");
|
ASSERT_ANY_THROW(Client cli("https://yahoo.com"));
|
||||||
// ASSERT_FALSE(cli.is_valid());
|
}
|
||||||
// }
|
#endif
|
||||||
// #endif
|
|
||||||
|
|
||||||
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
||||||
TEST(InvalidScheme, SimpleInterface) {
|
TEST(InvalidScheme, SimpleInterface) {
|
||||||
Client cli("scheme://yahoo.com");
|
ASSERT_ANY_THROW(Client cli("scheme://yahoo.com"));
|
||||||
ASSERT_FALSE(cli.is_valid());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(NoScheme, SimpleInterface) {
|
TEST(NoScheme, SimpleInterface) {
|
||||||
|
|||||||
Reference in new issue
Block a user