1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-12 02:09:36 +00:00

update actix-net dep

This commit is contained in:
Nikolay Kim 2018-11-08 16:06:23 -08:00
parent 62f1c90c8d
commit 9ab586e24e
2 changed files with 3 additions and 2 deletions

View file

@ -62,7 +62,7 @@ cell = ["actix-net/cell"]
[dependencies]
actix = "^0.7.5"
actix-net = "^0.1.1"
actix-net = "0.2.0"
base64 = "0.10"
bitflags = "1.0"

View file

@ -385,10 +385,11 @@ fn test_ws_stopped() {
{
let (reader, mut writer) = srv.ws().unwrap();
writer.text("text");
writer.close(None);
let (item, _) = srv.execute(reader.into_future()).unwrap();
assert_eq!(item, Some(ws::Message::Text("text".to_owned())));
}
thread::sleep(time::Duration::from_millis(1000));
thread::sleep(time::Duration::from_millis(100));
assert_eq!(num.load(Ordering::Relaxed), 1);
}