Skip to content

Commit

Permalink
Optimize test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
scaprile committed Sep 12, 2023
1 parent 3773ef4 commit fdfad84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
fail-fast: false
matrix:
ssl: ["", MBEDTLS] #ssl: ["", MBEDTLS, OPENSSL]
select: ["-DMG_ENABLE_POLL=0 -DMG_ENABLE_EPOLL=1", -DMG_ENABLE_POLL=1]
select: [-DMG_ENABLE_POLL=0, -DMG_ENABLE_POLL=1]
exclude:
- ssl: MBEDTLS
select: -DMG_ENABLE_POLL=0
Expand Down
3 changes: 2 additions & 1 deletion test/unit_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,8 @@ static void test_http_client(void) {
mg_mgr_poll(&mgr, 1);
#if 0
{
// TODO(): Test failed host validation, mg_tls_init() is called on mg_connect() if url is https,
// TODO(): Test failed host validation, mg_tls_init() is called on
// mg_connect() if url is https,
// hence we fake it and manually call it later with a wrong host name
const char *furl = "http://cesanta.com:443";
struct mg_str srvname;
Expand Down

0 comments on commit fdfad84

Please sign in to comment.