Skip to content

Commit 0ed70c4

Browse files
committed
Fixed unit test errors
1 parent a50b759 commit 0ed70c4

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

test/test.cc

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3427,17 +3427,15 @@ TEST(CleanupTest, WSACleanup) {
34273427
}
34283428
#endif
34293429

3430-
// #ifndef CPPHTTPLIB_OPENSSL_SUPPORT
3431-
// TEST(NoSSLSupport, SimpleInterface) {
3432-
// Client cli("https://yahoo.com");
3433-
// ASSERT_FALSE(cli.is_valid());
3434-
// }
3435-
// #endif
3430+
#ifndef CPPHTTPLIB_OPENSSL_SUPPORT
3431+
TEST(NoSSLSupport, SimpleInterface) {
3432+
ASSERT_ANY_THROW(Client cli("https://yahoo.com"));
3433+
}
3434+
#endif
34363435

34373436
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
34383437
TEST(InvalidScheme, SimpleInterface) {
3439-
Client cli("scheme://yahoo.com");
3440-
ASSERT_FALSE(cli.is_valid());
3438+
ASSERT_ANY_THROW(Client cli("scheme://yahoo.com"));
34413439
}
34423440

34433441
TEST(NoScheme, SimpleInterface) {

0 commit comments

Comments
 (0)