Skip to content

Commit

Permalink
Fix random crash on test
Browse files Browse the repository at this point in the history
  • Loading branch information
babelouest committed Jan 12, 2019
1 parent 57541ce commit 67f5fa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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/\
Expand Down

0 comments on commit 67f5fa7

Please sign in to comment.