mirror of https://github.com/fafhrd91/actix-net
move delay timer and make it happen early
This commit is contained in:
parent
0d77e0076c
commit
f13d76c67d
|
@ -540,6 +540,8 @@ async fn test_worker_restart() {
|
|||
assert_eq!("1", id);
|
||||
stream.shutdown().await.unwrap();
|
||||
|
||||
sleep(Duration::from_secs(5)).await;
|
||||
|
||||
// worker 2 restarting and work goes to worker 1.
|
||||
let mut stream = TcpStream::connect(addr).await.unwrap();
|
||||
|
||||
|
|
Loading…
Reference in New Issue