Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dvolodin7 committed Jan 22, 2024
1 parent 4c50b08 commit 5da841e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ mod tests {
let master_key = [117u8, 115, 101, 114, 49, 48, 107, 101, 121]; // user10key
let engine_id = [128, 0, 31, 136, 4, 50, 55, 103, 83, 56, 54, 116, 100];
let mut auth_key = Md5AuthKey::default();
auth_key.from_master(&master_key, &engine_id);
auth_key.as_master(&master_key, &engine_id);
auth_key.sign(&mut whole_msg)?;
assert_eq!(whole_msg, expected);
Ok(())
Expand All @@ -147,7 +147,7 @@ mod tests {
let master_key = [117u8, 115, 101, 114, 50, 48, 107, 101, 121]; // user20key
let engine_id = [128, 0, 31, 136, 4, 50, 55, 103, 83, 56, 54, 116, 100];
let mut auth_key = Sha1AuthKey::default();
auth_key.from_master(&master_key, &engine_id);
auth_key.as_master(&master_key, &engine_id);
auth_key.sign(&mut whole_msg)?;
assert_eq!(whole_msg, expected);
Ok(())
Expand Down
3 changes: 0 additions & 3 deletions src/snmp/msg/v3/usm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ impl<'a> BerEncoder for UsmParameters<'a> {
#[cfg(test)]
mod tests {
use super::*;
use crate::ber::SnmpOid;
use crate::snmp::get::SnmpGet;
use crate::snmp::value::SnmpValue;

#[test]
fn test_parse_usm_plain() -> Result<(), SnmpError> {
Expand Down

0 comments on commit 5da841e

Please sign in to comment.