diff --git a/tests/core/io/test_http_client.cpp b/tests/core/io/test_http_client.cpp index 9321506030..cef8a1a131 100644 --- a/tests/core/io/test_http_client.cpp +++ b/tests/core/io/test_http_client.cpp @@ -34,9 +34,7 @@ TEST_FORCE_LINK(test_http_client) #include "core/io/http_client.h" -#ifdef WEB_ENABLED #include "modules/modules_enabled.gen.h" // For mbedtls. -#endif // WEB_ENABLED namespace TestHTTPClient { @@ -90,7 +88,7 @@ TEST_CASE("[HTTPClient] verify_headers") { ERR_PRINT_ON; } -#ifdef MODULE_MBEDTLS_ENABLED +#if defined(MODULE_MBEDTLS_ENABLED) || defined(WEB_EMABLED) TEST_CASE("[HTTPClient] connect_to_host") { Ref client = HTTPClient::create(); String host = "https://www.example.com"; @@ -101,6 +99,6 @@ TEST_CASE("[HTTPClient] connect_to_host") { Error err = client->connect_to_host(host, port, tls_options); CHECK_MESSAGE(err == OK, "Expected OK for successful connection"); } -#endif // MODULE_MBEDTLS_ENABLED +#endif // defined(MODULE_MBEDTLS_ENABLED) || defined(WEB_EMABLED) } // namespace TestHTTPClient diff --git a/tests/core/io/test_stream_peer_gzip.cpp b/tests/core/io/test_stream_peer_gzip.cpp index a6917c1e8f..2384dac61d 100644 --- a/tests/core/io/test_stream_peer_gzip.cpp +++ b/tests/core/io/test_stream_peer_gzip.cpp @@ -34,7 +34,7 @@ TEST_FORCE_LINK(test_stream_peer_gzip) #include "core/io/stream_peer_gzip.h" -namespace TestStreamGZIP { +namespace TestStreamPeerGZIP { const String hello = "Hello World!!!"; @@ -193,4 +193,4 @@ TEST_CASE("[StreamPeerGZIP] Fails to get if nothing was compress/decompress") { ERR_PRINT_ON; } -} // namespace TestStreamGZIP +} // namespace TestStreamPeerGZIP