1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

prepare release

This commit is contained in:
Nikolay Kim
2018-05-20 21:09:54 -07:00
parent 285c73e95e
commit 14d1b8e2b6
3 changed files with 10 additions and 2 deletions

View File

@ -86,7 +86,13 @@ fn test_start() {
// pause
let _ = srv_addr.send(server::PauseServer).wait();
thread::sleep(time::Duration::from_millis(200));
assert!(net::TcpStream::connect(addr).is_err());
{
let req = client::ClientRequest::get(format!("http://{}/", addr).as_str())
.timeout(time::Duration::from_millis(200))
.finish()
.unwrap();
assert!(sys.run_until_complete(req.send()).is_err());
}
// resume
let _ = srv_addr.send(server::ResumeServer).wait();