Skip to content

Commit 5b82550

Browse files
committed
crypto: Wait for a stream in state encryption test
This was sometimes failing for me locally, so use a macro that expects a value from a stream soon, rather than immediately.
1 parent 5d396e4 commit 5b82550

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/matrix-sdk-ui/src/timeline/tests/encryption.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,9 @@ async fn test_retry_decryption_updates_reply() {
928928

929929
// We receive the UTD.
930930
{
931-
let event = assert_next_matches!(stream, VectorDiff::PushBack { value } => value);
931+
let event =
932+
assert_next_matches_with_timeout!(stream, VectorDiff::PushBack { value } => value);
933+
932934
assert_let!(
933935
TimelineItemContent::MsgLike(MsgLikeContent {
934936
kind: MsgLikeKind::UnableToDecrypt(EncryptedMessage::MegolmV1AesSha2 {

0 commit comments

Comments
 (0)