mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
stable compat
This commit is contained in:
parent
8452c7a044
commit
8f42fec9b2
@ -32,7 +32,7 @@ use tokio::executor::current_thread;
|
|||||||
use tokio::runtime::current_thread::Runtime;
|
use tokio::runtime::current_thread::Runtime;
|
||||||
use tokio_tcp::TcpStream;
|
use tokio_tcp::TcpStream;
|
||||||
|
|
||||||
use actix::{msgs::SystemExit, Arbiter, System};
|
use actix::{msgs, Arbiter, System};
|
||||||
use actix_web::*;
|
use actix_web::*;
|
||||||
|
|
||||||
const STR: &str = "Hello World Hello World Hello World Hello World Hello World \
|
const STR: &str = "Hello World Hello World Hello World Hello World Hello World \
|
||||||
@ -110,7 +110,7 @@ fn test_start() {
|
|||||||
assert!(response.status().is_success());
|
assert!(response.status().is_success());
|
||||||
}
|
}
|
||||||
|
|
||||||
let _ = sys.send(SystemExit(0)).wait();
|
let _ = sys.send(msgs::SystemExit(0)).wait();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -148,7 +148,7 @@ fn test_shutdown() {
|
|||||||
thread::sleep(time::Duration::from_millis(1000));
|
thread::sleep(time::Duration::from_millis(1000));
|
||||||
assert!(net::TcpStream::connect(addr).is_err());
|
assert!(net::TcpStream::connect(addr).is_err());
|
||||||
|
|
||||||
let _ = sys.send(SystemExit(0)).wait();
|
let _ = sys.send(msgs::SystemExit(0)).wait();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user