From 9d40a7d30f189ef604b71f371038f32df7c61479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Tue, 4 May 2021 23:19:05 +0200 Subject: [PATCH] fix integration tests --- tests/imap_test.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/imap_test.rs b/tests/imap_test.rs index 86195f65..87038728 100644 --- a/tests/imap_test.rs +++ b/tests/imap_test.rs @@ -1,6 +1,8 @@ extern crate himalaya; -use himalaya::{config::model::Account, imap::model::ImapConnector, msg::model::Msgs, smtp}; +use himalaya::{ + config::model::Account, imap::model::ImapConnector, mbox::model::Mboxes, msg::model::Msgs, smtp, +}; fn get_account(addr: &str) -> Account { Account { @@ -29,9 +31,8 @@ fn get_account(addr: &str) -> Account { fn mbox() { let account = get_account("inbox@localhost"); let mut imap_conn = ImapConnector::new(&account).unwrap(); - let mboxes: Vec = imap_conn - .list_mboxes() - .unwrap() + let names = imap_conn.list_mboxes().unwrap(); + let mboxes: Vec = Mboxes::from(&names) .0 .into_iter() .map(|mbox| mbox.name)