This commit is contained in:
Rob Ede 2021-01-04 01:33:11 +00:00
parent 83ff4f38e1
commit 7013ee4d90
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6
4 changed files with 4 additions and 13 deletions

View File

@ -5,7 +5,7 @@
use std::io;
use derive_more::{Display, From, Error};
use derive_more::{Display, Error, From};
use http::{header, Method, StatusCode};
use crate::error::ResponseError;

View File

@ -101,10 +101,7 @@ async fn test_simple() {
// client service
let mut framed = srv.ws().await.unwrap();
framed
.send(ws::Message::Text("text".into()))
.await
.unwrap();
framed.send(ws::Message::Text("text".into())).await.unwrap();
let (item, mut framed) = framed.into_future().await;
assert_eq!(
item.unwrap().unwrap(),

View File

@ -38,10 +38,7 @@ async fn test_simple() {
// client service
let mut framed = srv.ws().await.unwrap();
framed
.send(ws::Message::Text("text".into()))
.await
.unwrap();
framed.send(ws::Message::Text("text".into())).await.unwrap();
let item = framed.next().await.unwrap().unwrap();
assert_eq!(item, ws::Frame::Text(Bytes::from_static(b"text")));

View File

@ -43,10 +43,7 @@ async fn test_simple() {
// client service
let mut framed = srv.ws().await.unwrap();
framed
.send(ws::Message::Text("text".into()))
.await
.unwrap();
framed.send(ws::Message::Text("text".into())).await.unwrap();
let item = framed.next().await.unwrap().unwrap();
assert_eq!(item, ws::Frame::Text(Bytes::from_static(b"text")));