diff --git a/tests/test_nat_detection.c b/tests/test_nat_detection.c index 1d148a29..fb3e200a 100644 --- a/tests/test_nat_detection.c +++ b/tests/test_nat_detection.c @@ -261,7 +261,9 @@ int main(void) { assert(status.round != second_status.round); check_snapshot(owner, socket); check_snapshot(owner, second_socket); - assert(tcp->address_profile.mapping == ADDRESS_MAP_UNKNOWN && tcp->address_profile.inbound == ADDRESS_IN_UNKNOWN); + assert(tcp->address_profile.inbound == ADDRESS_IN_UNKNOWN); + struct nat_check_status tcp_status; + assert(!nat_detection_get_status(owner->nat_det, tcp, &tcp_status) && !tcp_status.rounds && !tcp_status.helper); /* Профиль B не заимствует профиль A, даже когда транспорт переиспользуется в обе стороны. */ assert(!route_ping_addr_equal(&socket->local_addr, &observer_socket->local_addr, 1));