Give protocol unit fixtures an explicit non-CHAT group type

This commit is contained in:
evgeny committed 2026-11-03 20:00:09 +01:00
1 parent 09a3d09013
commit 3069d1c781
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -102,7 +102,7 @@ int main(void) {
size_t baseline = u_get_allocated_count();
struct UASYNC* ua = uasync_create(); CHECK(ua);
struct UTUN_INSTANCE inst = {.ua = ua};
struct TOPO_GROUP group = {.instance = &inst, .group_id = 42};
struct TOPO_GROUP group = {.instance = &inst, .group_id = 42, .group_type = TOPO_GROUP_TYPE_UTUN};
size_t before = u_get_allocated_count();
fail_timer = 1;
CHECK(broadcast_init(&group) == -1 && !group.broadcast);
+1
View File
@@ -47,6 +47,7 @@ int main(void) {
groups.group_list = queue_new(ua, 16, 0, 8, "radio_test_groups"); assert(groups.group_list);
struct TOPO_GROUP* group = (void*)queue_entry_new(sizeof(*group) - sizeof(struct ll_entry)); assert(group);
group->instance = &inst; group->group_id = 77; group->radio_active = 1;
group->group_type = TOPO_GROUP_TYPE_UTUN; /* Формат/таймеры без CHAT-БД; допуск проверяет сетевой isolation-тест. */
assert(!queue_data_put_with_index(groups.group_list, &group->ll));
group->nodes = queue_new(ua, 0, 0, 0, "radio_test_nodes");
group->senders_list = queue_new(ua, 0, 0, 0, "radio_test_senders");