From bb01f243fe4121b32e898936721ce4fe21f42d0d Mon Sep 17 00:00:00 2001 From: evgeny Date: Mon, 12 Oct 2026 19:54:39 +0200 Subject: [PATCH] Allow routed observers in the NAT integration assertions --- tests/test_nat_detection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_nat_detection.c b/tests/test_nat_detection.c index 6bfa8e03..ab99fd77 100644 --- a/tests/test_nat_detection.c +++ b/tests/test_nat_detection.c @@ -147,7 +147,8 @@ int main(void) { struct nat_check_status status; assert(nat_detection_get_status(owner->nat_det, socket, &status) == 0); - assert(status.helper_reselections > 0 && status.helper == helper->node_id && status.observer == observer->node_id); + assert(status.group_id == TOPO_GROUP_UTUN && status.helper == helper->node_id); + assert(status.observer == observer->node_id || status.observer == same_ip->node_id); struct nat_check_status second_status; assert(nat_detection_get_status(owner->nat_det, second_socket, &second_status) == 0); assert(status.round != second_status.round);