Removed Clinet tests.

removed all tests in client folder, as they arent used
This commit is contained in:
michael-bailey 2024-09-09 20:51:54 +01:00
parent bf80015145
commit e8a54052a3
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;