From 17f2d3373161d2f61fd721c5ea983910974b67d0 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Tue, 11 Jul 2023 19:15:23 +0200 Subject: [PATCH] test: Remove unnecessary inner_set_protection() call (#4539) 1:1 chats are automatically created as protected if the contact is verified, there is no need to explicitly do this. Plus, by removing this call, the test also tests that automatically creating 1:1 chats as protected works. --- src/tests/verified_chats.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/tests/verified_chats.rs b/src/tests/verified_chats.rs index 1967a320d..352b1d3ab 100644 --- a/src/tests/verified_chats.rs +++ b/src/tests/verified_chats.rs @@ -449,12 +449,7 @@ async fn test_break_protection_then_verify_again() -> Result<()> { mark_as_verified(&alice, &bob).await; mark_as_verified(&bob, &alice).await; - alice - .create_chat(&bob) - .await - .id - .inner_set_protection(&alice, ProtectionStatus::Protected) - .await?; + alice.create_chat(&bob).await; assert_verified(&alice, &bob, ProtectionStatus::Protected).await; tcm.section("Bob reinstalls DC");