mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-01-06 11:34:39 +01:00
Add test for reusing addr:port
This commit is contained in:
@@ -822,6 +822,17 @@ mod functional_test {
|
||||
bad => panic!(r#"Expected Error::ServerDeserialize but got "{}""#, bad),
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn reuse_addr() {
|
||||
let _ = env_logger::init();
|
||||
let addr = Server.listen("localhost:0".first_socket_addr(), server::Options::default())
|
||||
.wait()
|
||||
.unwrap();
|
||||
Server.listen(addr, server::Options::default())
|
||||
.wait()
|
||||
.unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
pub mod error_service {
|
||||
|
||||
Reference in New Issue
Block a user