Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Jul 3, 2024
1 parent ca4bee0 commit 51f4609
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1917,12 +1917,12 @@ mod tests {
assert!(stream.is_closed());
}

#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
#[tokio::test(flavor = "multi_thread")]
async fn test_message_streaming() {
let amal = new_test_client().await;
let bola = new_test_client().await;

let group = amal
let group: Arc<FfiGroup> = amal
.conversations()
.create_group(
vec![bola.account_address.clone()],
Expand All @@ -1936,12 +1936,14 @@ mod tests {
stream_closer.wait_for_ready().await;

group.send("hello".as_bytes().to_vec()).await.unwrap();
println!("WAITING FOR HELLO");
stream_callback.wait_for_delivery().await;
group.send("goodbye".as_bytes().to_vec()).await.unwrap();
println!("WAITING GOODBYE");
stream_callback.wait_for_delivery().await;

assert_eq!(stream_callback.message_count(), 2);

println!("WAITING FOR STREAM TO END");
stream_closer.end_and_wait().await.unwrap();
}

Expand Down

0 comments on commit 51f4609

Please sign in to comment.