1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

update ssl impls

This commit is contained in:
Nikolay Kim
2019-11-18 20:40:10 +06:00
parent 9e95efcc16
commit a6a2d2f444
7 changed files with 150 additions and 120 deletions

View File

@ -234,7 +234,7 @@ mod tests {
fn test_unread_data() {
Runtime::new()
.unwrap()
.block_on(lazy(|| {
.block_on(async {
let (_, mut payload) = Payload::create(false);
payload.unread_data(Bytes::from("data"));
@ -242,13 +242,12 @@ mod tests {
assert_eq!(payload.len(), 4);
assert_eq!(
Async::Ready(Some(Bytes::from("data"))),
payload.poll().ok().unwrap()
Poll::Ready(Some(Bytes::from("data"))),
payload.next_item().await.ok().unwrap()
);
let res: Result<(), ()> = Ok(());
result(res)
}))
result(())
})
.unwrap();
}
}