tests: allocate broadcast, avatar and invite listeners dynamically

This commit is contained in:
evgeny committed 2026-10-10 16:14:53 +02:00
1 parent e25d5cc220
commit 336b6871f3
3 files changed
+29 -27

No files matched your search

+1 -2
View File
@@ -160,8 +160,7 @@ int main(void) {
int failed = 1;
#define CHECK(condition, reason) do { if (!(condition)) { DEBUG_ERROR(DEBUG_CATEGORY_DM, "invite test: %s", reason); goto done; } } while (0)
CHECK(ua && !test_mkdtemp(directory), "temporary directory/event loop");
int port = 32000 + getpid() % 10000;
CHECK(!start_node(ua, directory, 0, port) && !start_node(ua, directory, 1, port + 1), "start nodes");
CHECK(!start_node(ua, directory, 0, 0) && !start_node(ua, directory, 1, 0), "start nodes");
chat_core_create_channel_auto(nodes[0], "source");
uint64_t source = 0, target = 0;
CHECK(!scalar(nodes[0], "SELECT channel_id FROM channels WHERE name='source'", &source), "create source group");