From 57f30057b469d585ff52cfc9b5640028ed0692e7 Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Thu, 15 Aug 2024 22:24:04 -0700 Subject: [PATCH] Fix failing test --- xmtp_mls/src/groups/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmtp_mls/src/groups/mod.rs b/xmtp_mls/src/groups/mod.rs index 388f2c045..34d370418 100644 --- a/xmtp_mls/src/groups/mod.rs +++ b/xmtp_mls/src/groups/mod.rs @@ -1455,7 +1455,7 @@ mod tests { bola_group .add_members_by_inbox_id(&bola, vec![charlie.inbox_id()]) .await - .expect_err("expected error"); + .expect("bola's add should succeed in a no-op"); amal_group .receive(&amal.store().conn().unwrap(), &amal) @@ -1494,8 +1494,8 @@ mod tests { None, ) .unwrap(); - // Bola should have one uncommitted intent in `Error::Failed` state for the failed attempt at adding Charlie, who is already in the group - assert_eq!(bola_failed_intents.len(), 1); + // Bola's attempted add should be deleted, since it will have been a no-op on the second try + assert_eq!(bola_failed_intents.len(), 0); } #[tokio::test(flavor = "multi_thread", worker_threads = 1)]