If unconfigured, let get_all_self_addrs() return vec![], not vec![""];

This commit is contained in:
Hocuri
2022-04-19 17:17:14 +02:00
committed by holger krekel
parent 5ee2f3696d
commit bc809986e7
3 changed files with 3 additions and 4 deletions

View File

@@ -1509,6 +1509,8 @@ mod tests {
async fn test_get_contacts() -> Result<()> {
let context = TestContext::new().await;
assert!(context.get_all_self_addrs().await?.is_empty());
// Bob is not in the contacts yet.
let contacts = Contact::get_all(&context.ctx, 0, Some("bob")).await?;
assert_eq!(contacts.len(), 0);