Browse Source

Allow routed observers in the NAT integration assertions

master
evgeny 7 days ago
parent
commit
bb01f243fe
  1. 3
      tests/test_nat_detection.c

3
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);

Loading…
Cancel
Save