From 67f5fa7c8ecc2241de41c631d362c9c9a6751251 Mon Sep 17 00:00:00 2001 From: Nicolas Mora Date: Sat, 12 Jan 2019 09:14:16 -0500 Subject: [PATCH] Fix random crash on test --- test/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/core.c b/test/core.c index 96fdecb7..3af460b3 100644 --- a/test/core.c +++ b/test/core.c @@ -118,12 +118,12 @@ START_TEST(test_ulfius_start_instance) { struct _u_instance u_instance; - ck_assert_int_eq(ulfius_start_framework(NULL), U_ERROR_PARAMS); - ck_assert_int_eq(ulfius_start_secure_framework(NULL, NULL, NULL), U_ERROR_PARAMS); - ck_assert_int_eq(ulfius_init_instance(&u_instance, 8080, NULL, NULL), U_OK); + ck_assert_int_eq(ulfius_init_instance(&u_instance, 8081, NULL, NULL), U_OK); ck_assert_int_eq(ulfius_add_endpoint_by_val(&u_instance, "GET", NULL, "test", 0, &callback_function_empty, NULL), U_OK); ck_assert_int_eq(ulfius_start_framework(&u_instance), U_OK); ck_assert_int_eq(ulfius_stop_framework(&u_instance), U_OK); + ck_assert_int_eq(ulfius_start_framework(NULL), U_ERROR_PARAMS); + ck_assert_int_eq(ulfius_start_secure_framework(NULL, NULL, NULL), U_ERROR_PARAMS); ck_assert_int_eq(ulfius_start_secure_framework(&u_instance, "error", "error"), U_ERROR_LIBMHD); ck_assert_int_eq(ulfius_start_secure_framework(&u_instance, "-----BEGIN PRIVATE KEY-----\ MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDr90HrswgEmln/\