Skip to content

Commit d7fe3d3

Browse files
committed
test: use tcm in test_modify_chat_lost
1 parent c486e4f commit d7fe3d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/chat.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -5318,7 +5318,8 @@ mod tests {
53185318
/// Test that group updates are robust to lost messages and eventual out of order arrival.
53195319
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
53205320
async fn test_modify_chat_lost() -> Result<()> {
5321-
let alice = TestContext::new_alice().await;
5321+
let mut tcm = TestContextManager::new();
5322+
let alice = tcm.alice().await;
53225323

53235324
let bob_id = Contact::create(&alice, "", "[email protected]").await?;
53245325
let claire_id = Contact::create(&alice, "", "[email protected]").await?;
@@ -5340,7 +5341,7 @@ mod tests {
53405341
remove_contact_from_chat(&alice, alice_chat_id, daisy_id).await?;
53415342
let remove2 = alice.pop_sent_msg().await;
53425343

5343-
let bob = TestContext::new_bob().await;
5344+
let bob = tcm.bob().await;
53445345

53455346
bob.recv_msg(&add).await;
53465347
let bob_chat_id = bob.get_last_msg().await.chat_id;

0 commit comments

Comments
 (0)