mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
14 lines
321 B
Rust
14 lines
321 B
Rust
use crate::ws::helper::{WsScript, WsTest};
|
|
|
|
#[actix_rt::test]
|
|
async fn ws_connect() {
|
|
let mut ws = WsTest::new(vec![
|
|
WsScript::SendText("abc"),
|
|
WsScript::SendText("abc"),
|
|
WsScript::SendText("abc"),
|
|
WsScript::Disconnect("close by user"),
|
|
])
|
|
.await;
|
|
ws.run_scripts().await
|
|
}
|