mirror of
https://github.com/actix/actix-web.git
synced 2024-11-19 16:11:07 +00:00
update actix-net dep
This commit is contained in:
parent
62f1c90c8d
commit
9ab586e24e
2 changed files with 3 additions and 2 deletions
|
@ -62,7 +62,7 @@ cell = ["actix-net/cell"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix = "^0.7.5"
|
actix = "^0.7.5"
|
||||||
actix-net = "^0.1.1"
|
actix-net = "0.2.0"
|
||||||
|
|
||||||
base64 = "0.10"
|
base64 = "0.10"
|
||||||
bitflags = "1.0"
|
bitflags = "1.0"
|
||||||
|
|
|
@ -385,10 +385,11 @@ fn test_ws_stopped() {
|
||||||
{
|
{
|
||||||
let (reader, mut writer) = srv.ws().unwrap();
|
let (reader, mut writer) = srv.ws().unwrap();
|
||||||
writer.text("text");
|
writer.text("text");
|
||||||
|
writer.close(None);
|
||||||
let (item, _) = srv.execute(reader.into_future()).unwrap();
|
let (item, _) = srv.execute(reader.into_future()).unwrap();
|
||||||
assert_eq!(item, Some(ws::Message::Text("text".to_owned())));
|
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);
|
assert_eq!(num.load(Ordering::Relaxed), 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue