From 26a98837f89db2dd841b0329e9c1c25f278762f9 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Tue, 10 Nov 2026 20:28:15 +0100 Subject: [PATCH] test(inbox): compare the snoozed items as a slice (#950) Co-Authored-By: Claude Opus 5.5 --- compliance-agent/tests/inbox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compliance-agent/tests/inbox.rs b/compliance-agent/tests/inbox.rs index fc1dd01..245c2ea 100644 --- a/compliance-agent/tests/inbox.rs +++ b/compliance-agent/tests/inbox.rs @@ -357,7 +357,7 @@ async fn the_inbox_buckets_decides_undoes_and_resubmits() { assert_eq!(record.by, "dev-user"); assert!(record.until > Utc::now() + Duration::days(6)); // The card's items are recorded, so a new one would end the snooze early. - assert_eq!(record.items, [secret.clone()]); + assert_eq!(record.items, std::slice::from_ref(&secret)); db.collection::("inbox_snoozes") .update_one( doc! { "key": &secret_key },