Skip to content

Commit fbb4fdf

Browse files
committed
simplify test
1 parent 5b1699f commit fbb4fdf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/webxdc/webxdc_tests.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,14 @@ async fn test_set_draft_invalid_webxdc() -> Result<()> {
128128
let t = TestContext::new_alice().await;
129129
let chat_id = create_group_chat(&t, ProtectionStatus::Unprotected, "foo").await?;
130130

131-
// sending invalid .xdc as file is possible, but must not result in Viewtype::Webxdc
132131
let mut instance = create_webxdc_instance(
133132
&t,
134133
"invalid-no-zip-but-7z.xdc",
135134
include_bytes!("../../test-data/webxdc/invalid-no-zip-but-7z.xdc"),
136135
)?;
137136

138137
chat_id.set_draft(&t, Some(&mut instance)).await?;
139-
let _draft = chat_id.get_draft(&t).await.unwrap();
138+
chat_id.get_draft(&t).await.unwrap();
140139
Ok(())
141140
}
142141

0 commit comments

Comments
 (0)