*/
static bool test_invite_02(void) {
// Trying to generate INVITATION by passing NULL as mesh link handle
*/
static bool test_invite_02(void) {
// Trying to generate INVITATION by passing NULL as mesh link handle
meshlink_set_log_cb(mesh_handle, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger);
// Trying to generate INVITATION by passing NULL as mesh link handle
meshlink_set_log_cb(mesh_handle, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger);
// Trying to generate INVITATION by passing NULL as mesh link handle
assert_int_equal(invitation, NULL);
meshlink_close(mesh_handle);
assert_int_equal(invitation, NULL);
meshlink_close(mesh_handle);
char *hostname1 = "127.1.1.1";
bool ret = meshlink_add_address(mesh_handle, hostname1);
char *hostname1 = "127.1.1.1";
bool ret = meshlink_add_address(mesh_handle, hostname1);
assert_int_not_equal(strstr(invitation, hostname1), NULL);
char *hostname2 = "127.1.2.3";
ret = meshlink_add_address(mesh_handle, hostname2);
assert_int_not_equal(strstr(invitation, hostname1), NULL);
char *hostname2 = "127.1.2.3";
ret = meshlink_add_address(mesh_handle, hostname2);
// Verify we have both the added addresses
assert_int_not_equal(strstr(invitation, hostname1), NULL);
// Verify we have both the added addresses
assert_int_not_equal(strstr(invitation, hostname1), NULL);