mirror of
https://github.com/chatmail/core.git
synced 2026-04-23 00:16:34 +03:00
Update tests to new async-std channel api
This commit is contained in:
@@ -922,7 +922,7 @@ mod tests {
|
|||||||
let bob = TestContext::new_bob().await;
|
let bob = TestContext::new_bob().await;
|
||||||
|
|
||||||
// Setup JoinerProgress sinks.
|
// Setup JoinerProgress sinks.
|
||||||
let (joiner_progress_tx, joiner_progress_rx) = async_std::sync::channel(100);
|
let (joiner_progress_tx, joiner_progress_rx) = async_std::channel::bounded(100);
|
||||||
bob.add_event_sink(move |event: Event| {
|
bob.add_event_sink(move |event: Event| {
|
||||||
let joiner_progress_tx = joiner_progress_tx.clone();
|
let joiner_progress_tx = joiner_progress_tx.clone();
|
||||||
async move {
|
async move {
|
||||||
@@ -1112,7 +1112,7 @@ mod tests {
|
|||||||
let bob = TestContext::new_bob().await;
|
let bob = TestContext::new_bob().await;
|
||||||
|
|
||||||
// Setup JoinerProgress sinks.
|
// Setup JoinerProgress sinks.
|
||||||
let (joiner_progress_tx, joiner_progress_rx) = async_std::sync::channel(100);
|
let (joiner_progress_tx, joiner_progress_rx) = async_std::channel::bounded(100);
|
||||||
bob.add_event_sink(move |event: Event| {
|
bob.add_event_sink(move |event: Event| {
|
||||||
let joiner_progress_tx = joiner_progress_tx.clone();
|
let joiner_progress_tx = joiner_progress_tx.clone();
|
||||||
async move {
|
async move {
|
||||||
@@ -1262,7 +1262,7 @@ mod tests {
|
|||||||
let bob = TestContext::new_bob().await;
|
let bob = TestContext::new_bob().await;
|
||||||
|
|
||||||
// Setup JoinerProgress sinks.
|
// Setup JoinerProgress sinks.
|
||||||
let (joiner_progress_tx, joiner_progress_rx) = async_std::sync::channel(100);
|
let (joiner_progress_tx, joiner_progress_rx) = async_std::channel::bounded(100);
|
||||||
bob.add_event_sink(move |event: Event| {
|
bob.add_event_sink(move |event: Event| {
|
||||||
let joiner_progress_tx = joiner_progress_tx.clone();
|
let joiner_progress_tx = joiner_progress_tx.clone();
|
||||||
async move {
|
async move {
|
||||||
|
|||||||
Reference in New Issue
Block a user