Verify transfer progress and history isolation across reconnects

This commit is contained in:
omar committed 2026-11-27 11:41:19 +03:00
1 parent a3ee6cc0c0
commit 67b2fc60b2
4 files changed
+37 -2

No files matched your search

+4
View File
@@ -301,6 +301,10 @@ fn file_browser_rejects_invalid_list_before_connection() {
}
let (reply, _) = core.request("valid-list", "file_list", json!({"channel_id":9_007_199_254_740_991u64,"path":"/"}));
assert_eq!(reply["error"]["code"], "not_connected", "{reply}");
let (reply, _) = core.request("invalid-history", "file_transfers", json!({"channel_id":1}));
assert_eq!(reply["error"]["code"], "bad_request", "{reply}");
let (reply, _) = core.request("offline-history", "file_transfers", json!({}));
assert_eq!(reply["error"]["code"], "not_connected", "{reply}");
core.shutdown();
}