Remove duplicate account test
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
22f12b2b10
commit
1c3865d8dd
1 changed files with 0 additions and 31 deletions
31
src/lib.rs
31
src/lib.rs
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue