fix test
This commit is contained in:
parent
c0f077a10e
commit
9fecfadf17
11
src/tests.rs
11
src/tests.rs
@ -61,12 +61,13 @@ async fn test_data_transfer() -> Result<(), ProtocolError> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tokio::spawn(async { let _ = server_thread().await; });
|
tokio::spawn(async { let _ = server_thread().await; });
|
||||||
|
|
||||||
let conn = MCConnTcp::connect("localhost:44447").await;
|
|
||||||
|
|
||||||
while let Err(_) = conn {}
|
let mut conn = loop {
|
||||||
|
match MCConnTcp::connect("localhost:44447").await {
|
||||||
let mut conn = conn?;
|
Ok(i) => break i,
|
||||||
|
Err(_) => {}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
conn.set_compression(Some(5));
|
conn.set_compression(Some(5));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user