Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
cca4174
remove: partial downloads
Simon-Laux Oct 30, 2025
fdcb222
remove partial download tests and fix issues in other tests
Simon-Laux Oct 30, 2025
7f3eabc
remove remaining partial messages tests
Simon-Laux Oct 30, 2025
2e2bc12
remove download limit validation, it does not really matter in the new
Simon-Laux Oct 30, 2025
902a0d7
fix clippy
Simon-Laux Oct 30, 2025
70d7e04
ignore that `partial_download_msg_body` is dead code
Simon-Laux Oct 30, 2025
2284d36
remove test for download limit validation
Simon-Laux Oct 30, 2025
53163ab
remove `test_download_on_demand`
Simon-Laux Oct 31, 2025
cc9fe5d
remove test `test_download_limit_chat_assignment`
Simon-Laux Oct 31, 2025
d1dc322
Remove superfluous parentheses.
Simon-Laux Oct 31, 2025
58ad664
fix the issue that broke the imap fetching
Simon-Laux Oct 31, 2025
014d80b
fix python lint errors
Simon-Laux Oct 31, 2025
a044436
remove cffi python test`test_webxdc_download_on_demand`
Simon-Laux Nov 1, 2025
28cca8b
fix python lint
Simon-Laux Nov 1, 2025
560e86b
fix rebase issue
Simon-Laux Nov 6, 2025
5a2ca7a
fix another rebase issue
Simon-Laux Nov 6, 2025
10c2016
fix lint of python test
Simon-Laux Nov 6, 2025
37b027a
reintroduce `Config::FailOnReceivingFullMsg` but renamed it to
Simon-Laux Nov 6, 2025
afa46c8
allow exclusion of `simulate_receive_imf_error` from get_info
Simon-Laux Nov 8, 2025
6d11e08
adapt comment
Simon-Laux Nov 12, 2025
05a1967
remove `StockMessage::PartialDownloadMsgBody`
Simon-Laux Nov 12, 2025
b70a41f
fix clippy issue
Simon-Laux Nov 14, 2025
971286b
restore test `test_downloadstate_values`
Simon-Laux Nov 14, 2025
af00375
restore test `test_webxdc_update_for_not_downloaded_instance` and rename
Simon-Laux Nov 14, 2025
ab1fdfa
bring back receiving half of `test_partial_receive_imf` and rename to
Simon-Laux Nov 14, 2025
f7d8812
remove `test_webxdc_update_for_not_yet_received_instance`
Simon-Laux Nov 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove test_webxdc_update_for_not_yet_received_instance
  • Loading branch information
Simon-Laux committed Nov 14, 2025
commit f7d8812c0b8416396dc4d9177a72d6faabc7f771
40 changes: 0 additions & 40 deletions src/webxdc/webxdc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,46 +328,6 @@ async fn test_webxdc_contact_request() -> Result<()> {
Ok(())
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn test_webxdc_update_for_not_yet_received_instance() -> Result<()> {
// Alice sends an instance and an update
let alice = TestContext::new_alice().await;
let bob = TestContext::new_bob().await;
let chat = alice.create_chat(&bob).await;
let mut alice_instance = create_webxdc_instance(
&alice,
"chess.xdc",
include_bytes!("../../test-data/webxdc/chess.xdc"),
)?;
let sent1 = alice.send_msg(chat.id, &mut alice_instance).await;
let alice_instance = sent1.load_from_db().await;
alice
.send_webxdc_status_update(
alice_instance.id,
r#"{"payload": 7, "summary":"sum", "document":"doc"}"#,
)
.await?;
alice.flush_status_updates().await?;
let sent2 = alice.pop_sent_msg().await;

// Bob receives a status update before instance
bob.recv_msg_trash(&sent2).await;
// Bob downloads instance, updates should be assigned correctly
let _ = bob.recv_msg(&sent1).await;
let bob_instance = bob.get_last_msg().await;
assert_eq!(bob_instance.viewtype, Viewtype::Webxdc);
assert_eq!(
bob.get_webxdc_status_updates(bob_instance.id, StatusUpdateSerial(0))
.await?,
r#"[{"payload":7,"document":"doc","summary":"sum","serial":1,"max_serial":1}]"#
);
let info = bob_instance.get_webxdc_info(&bob).await?;
assert_eq!(info.document, "doc");
assert_eq!(info.summary, "sum");

Ok(())
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn test_delete_webxdc_instance() -> Result<()> {
let t = TestContext::new_alice().await;
Expand Down
Loading