mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
Use TestContextManager for test_format_flowed_round_trip test
This commit is contained in:
@@ -1889,7 +1889,7 @@ mod tests {
|
|||||||
use crate::chatlist::Chatlist;
|
use crate::chatlist::Chatlist;
|
||||||
use crate::receive_imf::receive_imf;
|
use crate::receive_imf::receive_imf;
|
||||||
use crate::test_utils as test;
|
use crate::test_utils as test;
|
||||||
use crate::test_utils::TestContext;
|
use crate::test_utils::{TestContext, TestContextManager};
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
@@ -2376,8 +2376,9 @@ mod tests {
|
|||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||||
async fn test_format_flowed_round_trip() -> Result<()> {
|
async fn test_format_flowed_round_trip() -> Result<()> {
|
||||||
let alice = TestContext::new_alice().await;
|
let mut tcm = TestContextManager::new();
|
||||||
let bob = TestContext::new_bob().await;
|
let alice = tcm.alice().await;
|
||||||
|
let bob = tcm.bob().await;
|
||||||
let chat = alice.create_chat(&bob).await;
|
let chat = alice.create_chat(&bob).await;
|
||||||
|
|
||||||
let text = " Foo bar";
|
let text = " Foo bar";
|
||||||
|
|||||||
Reference in New Issue
Block a user