This commit is contained in:
Max Brunsfeld
2021-08-06 14:47:18 -07:00
parent 4a32bd6bb0
commit ff822c9158
4 changed files with 45 additions and 7 deletions
+12 -7
View File
@@ -513,13 +513,18 @@ async fn test_basic_chat(mut cx_a: TestAppContext, cx_b: TestAppContext) {
)
.await
.unwrap();
assert_eq!(
db.get_recent_channel_messages(channel_id, 50)
.await
.unwrap()[0]
.body,
"first message!"
);
let channels_a = client_a.get_channels().await;
assert_eq!(channels_a.len(), 1);
assert_eq!(channels_a[0].read(&cx_a).name(), "test-channel");
// assert_eq!(
// db.get_recent_channel_messages(channel_id, 50)
// .await
// .unwrap()[0]
// .body,
// "first message!"
// );
}
struct TestServer {