diff --git a/tests/test_media_delivery_integration.c b/tests/test_media_delivery_integration.c index c6b9e9df5..3a1af8609 100644 --- a/tests/test_media_delivery_integration.c +++ b/tests/test_media_delivery_integration.c @@ -85,7 +85,7 @@ static int setup_chat(void) { || topo_node_sqlite_channel_put(inst->topo_sqlite_db, "222", "private media", g_nid_a, g_a->my_keys.public_key, NULL, g_a->my_ed25519_pubkey, NULL, sig) < 0 || !topo_groups_create_group(inst->topo_groups, 222, TOPO_GROUP_TYPE_CHAT, "222")) return -1; - const char* tags = "{\"supernode\":\"yes\"}"; + const char* tags = "{\"ver\":\"1\",\"supernode\":\"yes\"}"; uint8_t owner_message[MS_ADM_TAGS_MAX + 8], owner_sig[64]; int bytes = member_sync_build_owner_msg(g_nid_a, tags, owner_message, sizeof(owner_message)); if (bytes < 0 || sc_ed25519_sign(g_a->my_ed25519_privkey, owner_message, bytes, owner_sig) != SC_OK) return -1; @@ -346,6 +346,7 @@ static int attack_packet(struct SVC_ROUTE_HDR h, const void* payload, size_t len static void phase_group_isolation(void) { TEST("real ETCP: establish a media channel in neighbouring group"); + if (count_rows(g_a->md.db, "peers_222", "node_type", 4) != 1) { FAIL("missing signed supernode role"); return; } uint8_t query[MEDIA_QUERY_HDR_SIZE + 16] = {0}; struct media_pkt_query* q = (void*)query; q->subcmd = MEDIA_SUBCMD_QUERY; q->num_blocks = 1; memset(q->media_id, 0x41, 16);