BlueGit

ict rusty-teams

fix(test): the gap guard's new message sorts after the demo messages

- the demo chat holds messages at 10:40 and 10:47 today; before 10:47 the new message sorted above them and the guard failed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-12 · 2 weeks ago

Hash
af3b0c0ee45465dbabdef1667af5e8fc833f34a1
Parent
53a311dd
1 file changed +1 −1
crates/app/src/layout_guard.rs +1 −1
@@ -1335,7 +1335,7 @@ mod frames {
1335 1335 message_id: "guard-new".to_owned(),
1336 1336 sender_id: Some(demo::PRIYA_ID.to_owned()),
1337 1337 sender_name: Some("Priya Nair".to_owned()),
1338 created_at: chrono::Utc::now(),
1338 created_at: chrono::Utc::now().max(demo::at(0, 10, 48)),
1339 1339 body_html: "<p>Fresh message</p>".to_owned(),
1340 1340 links_json: "[]".to_owned(),
1341 1341 attachments_json: "[]".to_owned(),
@@ -1335,7 +1335,7 @@ mod frames {
1335 message_id: "guard-new".to_owned(),
1335 message_id: "guard-new".to_owned(),
1336 sender_id: Some(demo::PRIYA_ID.to_owned()),
1336 sender_id: Some(demo::PRIYA_ID.to_owned()),
1337 sender_name: Some("Priya Nair".to_owned()),
1337 sender_name: Some("Priya Nair".to_owned()),
1338 created_at: chrono::Utc::now(),
1338 created_at: chrono::Utc::now().max(demo::at(0, 10, 48)),
1339 body_html: "<p>Fresh message</p>".to_owned(),
1339 body_html: "<p>Fresh message</p>".to_owned(),
1340 links_json: "[]".to_owned(),
1340 links_json: "[]".to_owned(),
1341 attachments_json: "[]".to_owned(),
1341 attachments_json: "[]".to_owned(),