fix test case

This commit is contained in:
munna0908 2025-04-01 22:17:33 +05:30 committed by Dmitriy Ryajov
parent 31a16e6b37
commit 378a35319f
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -43,6 +43,10 @@ suite "NAT Address Tests":
# Test address remapping
let (libp2pAddrs, discoveryAddrs) = nattedAddress(nat, addrs, udpPort)
defer:
# Stop the nat
waitFor nat.stop()
# Verify results
check(discoveryAddrs == expectedDiscoveryAddrs)
check(libp2pAddrs == expectedlibp2pAddrs)