Browse Source

Tests: PitySwarm - own_groups auto generated

LIB-11
heck 11 months ago
parent
commit
664bce8422
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      test/pitytest11/src/PitySwarm.cc

+ 10
- 0
test/pitytest11/src/PitySwarm.cc View File

@ -29,6 +29,16 @@ namespace pEp {
psp->peers.push_back(nodes.at(i)->getName());
}
}
// Groups
int grp_mod_node_nr = 0;
if (grp_mod_node_nr == node_nr) {
Test::Utils::Group grp1 = Test::Utils::Group{};
grp1.name = "grp_" + psp->own_name;
grp1.moderator = psp->own_name;
grp1.members = psp->peers;
psp->own_groups.push_back(grp1);
}
}
void PitySwarm::_init_process(PityUnit<PityPerspective>& unit, PityPerspective* ctx)


Loading…
Cancel
Save