test: Modify can_serde_config_test (#1048)

Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: xqft <estefano.bargas@fing.edu.uy>
This commit is contained in:
Francisco Krause Arnim
2023-01-31 00:48:17 -03:00
committed by GitHub
parent 55fc6924b9
commit be70f810e9
6 changed files with 42 additions and 14 deletions

View File

@ -658,7 +658,7 @@ impl Default for PeersManager {
}
/// Tracks stats about connected nodes
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct ConnectionInfo {
/// Counter for currently occupied slots for active outbound connections.
@ -917,7 +917,7 @@ pub enum PeerAction {
}
/// Config type for initiating a [`PeersManager`] instance
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct PeersConfig {
/// How often to recheck free slots for outbound connections.
@ -1003,7 +1003,7 @@ impl PeersConfig {
/// The durations to use when a backoff should be applied to a peer.
///
/// See also [`BackoffKind`](BackoffKind).
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct PeerBackoffDurations {
/// Applies to connection problems where there is a chance that they will be resolved after the