Add timeout
This commit is contained in:
parent
138ab72240
commit
f19656486a
4 changed files with 14 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ async fn start_server() -> String {
|
|||
"http://localhost:3103".into(),
|
||||
],
|
||||
replicas: 2,
|
||||
voltimeout: std::time::Duration::from_secs(1),
|
||||
};
|
||||
|
||||
let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue