mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-11-15 18:07:55 +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
|
||
|
|
}
|