Optimize test coverage

This commit is contained in:
Sergio R. Caprile 2023-09-12 16:00:28 -03:00 committed by Sergio R. Caprile
commit 3773ef45e7
2 changed files with 2 additions and 3 deletions

View File

@ -69,7 +69,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
ssl: ["", MBEDTLS] #ssl: ["", MBEDTLS, OPENSSL] ssl: ["", MBEDTLS] #ssl: ["", MBEDTLS, OPENSSL]
select: [-DMG_ENABLE_POLL=0, -DMG_ENABLE_POLL=1] select: ["-DMG_ENABLE_POLL=0 -DMG_ENABLE_EPOLL=1", -DMG_ENABLE_POLL=1]
exclude: exclude:
- ssl: MBEDTLS - ssl: MBEDTLS
select: -DMG_ENABLE_POLL=0 select: -DMG_ENABLE_POLL=0

View File

@ -1268,8 +1268,7 @@ static void test_http_client(void) {
mg_mgr_poll(&mgr, 1); mg_mgr_poll(&mgr, 1);
#if 0 #if 0
{ {
// TODO(): Test failed host validation, mg_tls_init() is called on // TODO(): Test failed host validation, mg_tls_init() is called on mg_connect() if url is https,
// mg_connect() if url is https,
// hence we fake it and manually call it later with a wrong host name // hence we fake it and manually call it later with a wrong host name
const char *furl = "http://cesanta.com:443"; const char *furl = "http://cesanta.com:443";
struct mg_str srvname; struct mg_str srvname;