From 66993ebdec64a690e1ec0e672b0de99a0ff6c84f Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 2 May 2025 10:50:47 +0300 Subject: [PATCH] state: drop state in tests --- src/state.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/state.rs b/src/state.rs index a391401..99e5369 100644 --- a/src/state.rs +++ b/src/state.rs @@ -146,6 +146,7 @@ mod tests { state.blocked.insert(ip1); assert!(state.blocked.contains(&ip1)); assert!(!state.blocked.contains(&ip2)); + drop(state); } // Test active connections @@ -159,6 +160,7 @@ mod tests { assert_eq!(state.active_connections.len(), 1); assert!(!state.active_connections.contains(&ip1)); assert!(state.active_connections.contains(&ip2)); + drop(state); } } }