mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-23 20:11:49 +00:00
Unit test fixed
This commit is contained in:
1 parent
d824cf7dbd
commit
5e50b7104c
2 files changed
+5
-6
No files matched your search
@@ -59,4 +59,4 @@ test: update
|
|||||||
# grep 'MQTT connected' /tmp/output.txt # Check for MQTT connection success
|
# grep 'MQTT connected' /tmp/output.txt # Check for MQTT connection success
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) firmware.* *.su cmsis_core cmsis_h7
|
$(RM) firmware.* *.su cmsis_core cmsis_h7 mbedtls
|
||||||
+4
-5
@@ -1183,10 +1183,10 @@ static void test_http_404(void) {
|
|||||||
|
|
||||||
static void test_tls(void) {
|
static void test_tls(void) {
|
||||||
#if MG_TLS
|
#if MG_TLS
|
||||||
struct mg_tls_opts opts = {};
|
struct mg_tls_opts opts = {0};
|
||||||
opts.client_ca = s_tls_ca;
|
opts.client_ca = mg_str(s_tls_ca);
|
||||||
opts.server_cert = s_tls_cert;
|
opts.server_cert = mg_str(s_tls_cert);
|
||||||
opts.server_key = s_tls_key;
|
opts.server_key = mg_str(s_tls_key);
|
||||||
struct mg_mgr mgr;
|
struct mg_mgr mgr;
|
||||||
struct mg_connection *c;
|
struct mg_connection *c;
|
||||||
const char *url = "https://127.0.0.1:12347";
|
const char *url = "https://127.0.0.1:12347";
|
||||||
@@ -1242,7 +1242,6 @@ static void test_http_client(void) {
|
|||||||
#if MG_TLS
|
#if MG_TLS
|
||||||
{
|
{
|
||||||
const char *url = "https://cesanta.com";
|
const char *url = "https://cesanta.com";
|
||||||
struct mg_str host = mg_url_host(url);
|
|
||||||
c = mg_http_connect(&mgr, url, f3, &ok);
|
c = mg_http_connect(&mgr, url, f3, &ok);
|
||||||
ASSERT(c != NULL);
|
ASSERT(c != NULL);
|
||||||
for (i = 0; i < 1500 && ok <= 0; i++) mg_mgr_poll(&mgr, 1000);
|
for (i = 0; i < 1500 && ok <= 0; i++) mg_mgr_poll(&mgr, 1000);
|
||||||
|
|||||||
Reference in new issue
Block a user