File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff 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
34383437TEST (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
34433441TEST (NoScheme, SimpleInterface) {
You can’t perform that action at this time.
0 commit comments