Tests: Compiled test conversion follow-up

This commit is contained in:
Thaddeus Crews 2026-02-19 10:19:03 -06:00
parent 4f62fa03f5
commit dde6e84bc3
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
2 changed files with 4 additions and 6 deletions

View file

@ -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<HTTPClient> 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

View file

@ -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