chat api is now always sorted already

This commit is contained in:
Robin Appelman 2020-11-28 02:10:47 +01:00
commit a2a2a8a876

View file

@ -162,8 +162,7 @@ async fn test_get_demo() {
async fn test_get_chat() { async fn test_get_chat() {
let client = test_client().await; let client = test_client().await;
let mut chat = client.get_chat(1).await.unwrap(); let chat = client.get_chat(1).await.unwrap();
chat.sort_by(|a, b| a.time.cmp(&b.time));
assert_eq!(chat.len(), 134); assert_eq!(chat.len(), 134);