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:
@@ -250,16 +250,6 @@ test "serializer: roundtrip app data message" {
|
||||
try testing.expectEqualStrings("custom application payload", full_msg_deserialized.app_data.data);
|
||||
}
|
||||
|
||||
// SEC-M9 FIX: Removed CRC32 checksum test.
|
||||
// CRC32 was redundant with HMAC-SHA256 which provides both integrity AND authentication.
|
||||
// HMAC integrity is tested in the HMAC-specific tests.
|
||||
test "serializer: hmac integrity note" {
|
||||
// This is a placeholder test documenting that integrity checking
|
||||
// is now exclusively handled by HMAC-SHA256, not CRC32.
|
||||
// HMAC provides cryptographic integrity guarantees that CRC32 cannot.
|
||||
try testing.expect(true);
|
||||
}
|
||||
|
||||
test "serializer: corrupted header handling" {
|
||||
const allocator = testing.allocator;
|
||||
var ser = serializer.MessageSerializer.initInsecureForTesting(allocator);
|
||||
|
||||
Reference in New Issue
Block a user