Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: fix test
Nathan165e95c48066
diff --git a/frontend/rust-lib/event-integration-test/tests/chat/chat_message_test.rs b/frontend/rust-lib/event-integration-test/tests/chat/chat_message_test.rsindex 5b29258142..a9c928db5b 100644--- a/frontend/rust-lib/event-integration-test/tests/chat/chat_message_test.rs+++ b/frontend/rust-lib/event-integration-test/tests/chat/chat_message_test.rs@@ -91,10 +91,8 @@ async fn af_cloud_load_remote_system_message_test() {.notification_sender.subscribe::<ChatMessageListPB>(&chat_id, ChatNotification::DidLoadLatestChatMessage);- // Previous messages were created by the server, so there are no messages in the local cache.- // It will try to load messages in the background.let all = test.load_next_message(&chat_id, 5, None).await;- assert!(all.messages.is_empty());+ assert_eq!(all.messages.len(), 5);// Wait for the messages to be loaded.let next_back_five = receive_with_timeout(rx, Duration::from_secs(60))@@ -119,7 +117,6 @@ async fn af_cloud_load_remote_system_message_test() {let first_five_messages = receive_with_timeout(rx, Duration::from_secs(60)).await.unwrap();- assert!(!first_five_messages.has_more);assert_eq!(first_five_messages.messages[0].content, "hello server 4");assert_eq!(first_five_messages.messages[1].content, "hello server 3");assert_eq!(first_five_messages.messages[2].content, "hello server 2");