Skip to content

Commit

Permalink
fix wasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Jan 11, 2023
1 parent 623f4dc commit c3eb08a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tokio/tests/sync_broadcast.rs
Expand Up @@ -11,6 +11,7 @@ use tokio_test::{
assert_err, assert_ok, assert_pending, assert_ready, assert_ready_err, assert_ready_ok,
};

#[cfg(any(not(tokio_wasm), tokio_wasi))]
use rand::Rng;
use std::sync::Arc;

Expand Down Expand Up @@ -563,6 +564,7 @@ fn sender_len() {
}

#[test]
#[cfg(any(not(tokio_wasm), tokio_wasi))]
fn sender_len_random() {
let (tx, mut rx1) = broadcast::channel(16);
let mut rx2 = tx.subscribe();
Expand Down

0 comments on commit c3eb08a

Please sign in to comment.