mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-17 02:10:07 +00:00
22 lines
394 B
Rust
22 lines
394 B
Rust
#![cfg(feature = "macros")]
|
|
|
|
#[cfg(target_arch = "wasm32")]
|
|
use wasm_bindgen_test::wasm_bindgen_test as maybe_tokio_test;
|
|
|
|
#[cfg(not(target_arch = "wasm32"))]
|
|
use tokio::test as maybe_tokio_test;
|
|
|
|
async fn one() {}
|
|
async fn two() {}
|
|
|
|
#[maybe_tokio_test]
|
|
async fn multi_pin() {
|
|
tokio::pin! {
|
|
let f1 = one();
|
|
let f2 = two();
|
|
}
|
|
|
|
(&mut f1).await;
|
|
(&mut f2).await;
|
|
}
|