Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Jul 8, 2024
1 parent c737979 commit 1b42a3b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,13 @@ impl FfiGroup {
inner_client,
self.group_id.clone(),
self.created_at_ns,
move |message| message_callback.on_message(message.into()),
move |message| {
println!(
"Got IN STREAM {}",
String::from_utf8_lossy(&message.decrypted_message_bytes)
);
message_callback.on_message(message.into())
},
);

FfiStreamCloser::new(handle)
Expand Down Expand Up @@ -1949,8 +1955,8 @@ mod tests {
log::info!("SEND GOODBYE");
stream_callback.wait_for_delivery().await;

assert_eq!(stream_callback.message_count(), 5);
log::info!("STREAM CLSOER");
assert_eq!(stream_callback.message_count(), 2);
log::info!("STREAM CLOSER");
stream_closer.end_and_wait().await.unwrap();
}

Expand Down

0 comments on commit 1b42a3b

Please sign in to comment.