Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Aug 16, 2024
1 parent a04e45e commit 57f3005
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xmtp_mls/src/groups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)]
Expand Down

0 comments on commit 57f3005

Please sign in to comment.