initial commit
This commit is contained in:
commit
c260d7bab8
235 files changed
+49786
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#[test]
|
||||
fn debug_empty_legacy_bind() {
|
||||
let t = tempfile::tempdir().unwrap();
|
||||
rust_xmpp::auth::create(t.path(), "localhost", "alice", "secret", "SHA-256").unwrap();
|
||||
eprintln!("before legacy");
|
||||
let r =
|
||||
rust_xmpp::account_modules::legacy_on_bind(t.path(), "localhost", "alice@localhost/main")
|
||||
.unwrap();
|
||||
eprintln!("after legacy {} {}", r.replies.len(), r.deliveries.len());
|
||||
let d = roxmltree::Document::parse("<presence xmlns='jabber:client'/>").unwrap();
|
||||
eprintln!("before avatar");
|
||||
let _ = rust_xmpp::account_modules::avatar_presence(
|
||||
t.path(),
|
||||
"localhost",
|
||||
"alice@localhost/main",
|
||||
d.root_element(),
|
||||
)
|
||||
.unwrap();
|
||||
eprintln!("after avatar");
|
||||
}
|
||||
Reference in new issue
Block a user