mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
reduce backend unit test loop time
This commit is contained in:
parent
d333f754c2
commit
49f1a96cda
@ -68,11 +68,11 @@ impl WebSocketReceiver for DocumentWebSocketReceiver {
|
|||||||
|
|
||||||
match actor_msg_sender.send(msg).await {
|
match actor_msg_sender.send(msg).await {
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
Err(e) => log::error!("[DocumentWebSocketReceiver]: send message to actor failed: {}", e),
|
Err(e) => tracing::error!("[DocumentWebSocketReceiver]: send message to actor failed: {}", e),
|
||||||
}
|
}
|
||||||
match rx.await {
|
match rx.await {
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
Err(e) => log::error!("[DocumentWebSocketReceiver]: message ret failed {:?}", e),
|
Err(e) => tracing::error!("[DocumentWebSocketReceiver]: message ret failed {:?}", e),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -242,7 +242,7 @@ async fn doc_create() {
|
|||||||
let user_id = "a".to_owned();
|
let user_id = "a".to_owned();
|
||||||
let mut document = ClientDocument::new::<PlainDoc>();
|
let mut document = ClientDocument::new::<PlainDoc>();
|
||||||
let mut offset = 0;
|
let mut offset = 0;
|
||||||
for i in 0..1000 {
|
for i in 0..5 {
|
||||||
let content = i.to_string();
|
let content = i.to_string();
|
||||||
let delta = document.insert(offset, content.clone()).unwrap();
|
let delta = document.insert(offset, content.clone()).unwrap();
|
||||||
offset += content.len();
|
offset += content.len();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user