clean up tests. remove placeholder assert-true tests, fix replay

protection and NAT test logic, fix MWP connection test peer ID
registration, use atomic port counter for test parallelism
This commit is contained in:
2026-02-10 20:13:54 -03:00
parent a44af22739
commit b7d013a272
12 changed files with 19 additions and 169 deletions

View File

@@ -288,8 +288,7 @@ test "NAT: XOR address encoding concept" {
const xored_port = port ^ @as(u16, @truncate(magic_cookie >> 16));
// The XORed value should be different from original
_ = xored_port;
try testing.expect(true);
try testing.expect(xored_port != port);
}
test "NAT: IPv4 address XOR concept" {