Removed Client tests #25

Merged
michael-bailey merged 1 commits from client-test-removal into master 2024-09-09 19:54:57 +00:00
3 changed files with 0 additions and 47 deletions

View File

@ -1,5 +1,3 @@
mod test;
fn main() {
println!("Please dont use this");
}

View File

@ -1,44 +0,0 @@
#[cfg(test)]
mod test {
use foundation::{
client::network_connection::NetworkConnection,
prelude::Info,
};
use uuid::Uuid;
#[tokio::test]
async fn get_info() {
let client = NetworkConnection::connect(
"127.0.0.1:6500"
.parse()
.expect("failed to parse address string"),
)
.await
.expect("failed to connect to test server");
let info: Info = client.send_get_info().await.unwrap();
println!("info: {:?}", info)
}
#[tokio::test]
async fn connect_and_disconnect() {
let client = NetworkConnection::connect(
"127.0.0.1:6500"
.parse()
.expect("failed to parse address string"),
)
.await
.expect("failed to connect to test server");
let (w, r) = client
.send_connect(Uuid::new_v4(), "test user".into())
.await
.unwrap();
drop(w);
drop(r);
println!("finished")
}
}

View File

@ -1 +0,0 @@
mod client_test;