Merge pull request #116486 from Repiteo/tests/ats-tweaks

Tests: Compiled test conversion follow-up
This commit is contained in:
Thaddeus Crews 2026-02-19 10:24:51 -06:00 committed by GitHub
commit 897172fa25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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