diff --git a/awc/tests/test_ws.rs b/awc/tests/test_ws.rs index bfc81afbc..e8ebd4339 100644 --- a/awc/tests/test_ws.rs +++ b/awc/tests/test_ws.rs @@ -65,4 +65,8 @@ async fn test_simple() { let item = framed.next().await.unwrap().unwrap(); assert_eq!(item, ws::Frame::Close(Some(ws::CloseCode::Normal.into()))); + + let nothing = actix_rt::time::timeout(std::time::Duration::from_secs(1), framed.next()).await; + assert_eq!(true, nothing.is_ok()); + assert_eq!(true, nothing.unwrap().is_none()); }