state: drop state in tests
This commit is contained in:
parent
37e57fa015
commit
66993ebdec
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue