fix tests: disable Noise encryption in multi-peer, swarm, chaos perf

tests
This commit is contained in:
2026-02-13 17:29:45 -03:00
parent 6ec1346cfd
commit 46c1fa13af
3 changed files with 5 additions and 0 deletions

View File

@@ -220,6 +220,7 @@ const PeerManager = struct {
fn createPeer(self: *PeerManager, name: []const u8, role: PeerRole, port: u16) !*PeerState {
var config = P2PConfig.default();
config.network.listen_port = port;
config.network.enable_noise_encryption = false;
config.protocol.enable_encryption = false;
config.events.enable_logging = false;
// CASCADE FIX: Disable rate limiting for test to allow mesh topology establishment
@@ -652,6 +653,7 @@ const SwarmChaosTest = struct {
// Reinitialize A
var config = P2PConfig.default();
config.network.listen_port = recovery_port;
config.network.enable_noise_encryption = false;
config.protocol.enable_encryption = false;
config.events.enable_logging = false;
config.file_sharing.piece_size = Config.PIECE_SIZE;