mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +01:00
test timing
This commit is contained in:
parent
0da3fdcb09
commit
e9c1889df4
@ -887,6 +887,7 @@ fn test_brotli_encoding_large() {
|
|||||||
fn test_h2() {
|
fn test_h2() {
|
||||||
let srv = test::TestServer::new(|app| app.handler(|_| HttpResponse::Ok().body(STR)));
|
let srv = test::TestServer::new(|app| app.handler(|_| HttpResponse::Ok().body(STR)));
|
||||||
let addr = srv.addr();
|
let addr = srv.addr();
|
||||||
|
thread::sleep(time::Duration::from_millis(500));
|
||||||
|
|
||||||
let mut core = Runtime::new().unwrap();
|
let mut core = Runtime::new().unwrap();
|
||||||
let tcp = TcpStream::connect(&addr);
|
let tcp = TcpStream::connect(&addr);
|
||||||
|
Loading…
Reference in New Issue
Block a user