1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 17:52:56 +01: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);
}