Remove duplicate account test

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-01-09 18:15:43 +01:00
parent 22f12b2b10
commit 1c3865d8dd
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -242,37 +242,6 @@ mod tests {
assert_eq!(parse_accounts(buf1), Ok(("", accounts)));
}
#[ignore]
#[test]
fn test_duplicate_accounts() {
let buf1 = r#"
[Client] louise
jid: louise@localhost
password: password
[Client] louise
jid: louise2@localhost
password: password
"#;
let mut accounts: HashMap<AccountName, Account> = HashMap::new();
accounts.insert(
String::from("louise"),
Account {
jid: BareJid::from_str("louise@localhost").unwrap(),
password: String::from("password"),
},
);
accounts.insert(
String::from("須賀子"),
Account {
jid: BareJid::from_str("sugako@localhost").unwrap(),
password: String::from("password"),
},
);
assert_eq!(parse_accounts(buf1), Ok(("", accounts)));
}
#[test]
fn test_action_connect() {
let buf1 = "louise connects\n";