mod error; mod session; pub use session::Session; #[cfg(test)] mod tests { use super::*; #[tokio::test] async fn authorized_session() { let host = std::env::var("ICRC_TEST_HOST") .expect("The environment variable ICRC_TEST_HOST needs to be set!"); let token = std::env::var("ICRC_TEST_AUTH") .expect("The environment variable ICRC_TEST_AUTH needs to be set!"); let session = Session::new(&host, Some(token)).await.unwrap(); // assert_eq!(result, 4); } }