Trace group history readiness in attachment network test
This commit is contained in:
1 parent
6c8e2763e5
commit
3f48a145ae
1 file changed
+5
@@ -160,6 +160,10 @@ static void tick(void* arg) {
|
||||
struct UTUN_INSTANCE* b = t->nodes[B];
|
||||
struct UTUN_INSTANCE* s = t->nodes[S];
|
||||
struct UTUN_INSTANCE* c = t->nodes[M];
|
||||
if (t->ticks % 200 == 0) DEBUG_INFO(DEBUG_CATEGORY_MEDIA,
|
||||
"encrypted attachment test waiting phase=%u ticks=%u messages=A:%d B:%d S:%d C:%d", t->phase, t->ticks,
|
||||
value(a, "SELECT count(*) FROM msg_" CHANNEL), value(b, "SELECT count(*) FROM msg_" CHANNEL),
|
||||
value(s, "SELECT count(*) FROM msg_" CHANNEL), value(c, "SELECT count(*) FROM msg_" CHANNEL));
|
||||
switch (t->phase) {
|
||||
case 0:
|
||||
if (live(a, t->ids[S]) && live(b, t->ids[S]) && live(c, t->ids[S])) {
|
||||
@@ -260,6 +264,7 @@ int main(void) {
|
||||
test_clock_init(1000); test_clock_sync_wall_time();
|
||||
if (getenv("UTUN_TEST_DEBUG")) {
|
||||
debug_set_category_level_by_name("dm", "debug"); debug_set_category_level_by_name("media", "debug");
|
||||
debug_set_category_level_by_name("chat_sync", "debug"); debug_set_category_level_by_name("member_sync", "info");
|
||||
debug_set_category_level_by_name("bgp", "info"); debug_set_category_level_by_name("etcp_route", "info");
|
||||
debug_set_category_level_by_name("connection", "debug"); debug_set_category_level_by_name("etcp", "info");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user