summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-07-04 21:27:15 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2023-07-04 21:27:15 +0100
commit143a0365d0822e6786cdac3530a725bbf450f38f (patch)
tree8b540aa73c1365ddc658e502ed93847dbb522064 /src/lib.rs
parentc0a7116eef13ea75340fe7d75da97dfbd04fac20 (diff)
downloadluz-143a0365d0822e6786cdac3530a725bbf450f38f.tar.gz
luz-143a0365d0822e6786cdac3530a725bbf450f38f.tar.bz2
luz-143a0365d0822e6786cdac3530a725bbf450f38f.zip
horrible
Diffstat (limited to '')
-rw-r--r--src/lib.rs26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 7f1433d..d27f0ba 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -27,16 +27,26 @@ mod tests {
// println!("{:?}", jabber.get_sockets().await)
// }
+ // #[tokio::test]
+ // async fn connect() {
+ // Jabber::new(JID::from_str("cel@blos.sm").unwrap(), "password".to_owned())
+ // .unwrap()
+ // .connect()
+ // .await
+ // .unwrap()
+ // .ensure_tls()
+ // .await
+ // .unwrap()
+ // .start_stream()
+ // .await
+ // .unwrap();
+ // }
+
#[tokio::test]
- async fn connect() {
- Jabber::new(JID::from_str("cel@blos.sm").unwrap(), "password".to_owned())
- .connect()
- .await
- .unwrap()
- .ensure_tls()
- .await
+ async fn login() {
+ Jabber::new(JID::from_str("test@blos.sm").unwrap(), "slayed".to_owned())
.unwrap()
- .start_stream()
+ .login()
.await
.unwrap();
}