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:
@@ -260,16 +260,3 @@ test "broadcast result structure" {
|
||||
try testing.expectEqual(@as(usize, 7), result.total_peers);
|
||||
}
|
||||
|
||||
test "no silent error swallowing in critical paths" {
|
||||
// This is a meta-test that documents the fixes made
|
||||
|
||||
// 1. Router cleanup now pre-allocates and logs failures
|
||||
// 2. Replay protection cleanup now pre-allocates and logs failures
|
||||
// 3. Rate limiter cleanup now pre-allocates and logs failures
|
||||
// 4. Network broadcast now returns BroadcastResult with counts
|
||||
// 5. Handler errors now use std.log.err and record metrics
|
||||
// 6. Error helper functions now actually use their parameters
|
||||
// 7. Test cleanup now logs failures
|
||||
|
||||
try testing.expect(true); // All fixes verified by other tests
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user