diff options
Diffstat (limited to 'src/state/peer.rs')
| -rw-r--r-- | src/state/peer.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/state/peer.rs b/src/state/peer.rs index 9f2da0f..923c6d2 100644 --- a/src/state/peer.rs +++ b/src/state/peer.rs @@ -444,7 +444,10 @@ mod tests { let timing = Timing::from_keepalive(Duration::from_secs(60), Duration::from_secs(300)); let mut heard = PeerState::new(true, &timing); assert_eq!(heard.liveness, Liveness::Unknown); - assert!(!heard.mark_seen(heard.added_at), "no re-handshake: none yet"); + assert!( + !heard.mark_seen(heard.added_at), + "no re-handshake: none yet" + ); assert_eq!(heard.liveness, Liveness::Active); let mut silent = PeerState::new(true, &timing); assert!(silent.check_dormancy(&timing, silent.added_at + timing.dormant_after)); |
