From 23d64f731a499ea350be778b22d9fd5e1611b735 Mon Sep 17 00:00:00 2001 From: evgeny Date: Mon, 26 Oct 2026 14:53:48 +0100 Subject: [PATCH] Preserve final mesh duplicate read outside diagnostic mode --- tests/test_radio_mesh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_radio_mesh.c b/tests/test_radio_mesh.c index 264407c24..2c15b8e91 100644 --- a/tests/test_radio_mesh.c +++ b/tests/test_radio_mesh.c @@ -543,7 +543,7 @@ int main(int argc, char** argv) { int ok = (t.result == 1); uint64_t gid = strtoull(CH_ID, NULL, 10); /* Хвост собирает поздние пакеты, но не меняет исходный результат теста. */ - uint32_t dup_c = ok ? t.stop_dup_c : radio_dup_dropped(t.inst[IDX_C], gid); + uint32_t dup_c = ok && getenv("UTUN_TEST_MESH_TAIL") ? t.stop_dup_c : radio_dup_dropped(t.inst[IDX_C], gid); if (ok && dup_c == 0) { /* кадры не задвоились, но и дедупликация не сработала — топология не дала дублей */