1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! All tests for the `fluvio-wasm-timer` crate.
//!
//! These
#[macro_use]
mod macros;
mod common;
cfg_wasm32! {
cfg_fluvio_wasm_timer! {
use wasm_bindgen_test::{wasm_bindgen_test, wasm_bindgen_test_configure};
wasm_bindgen_test_configure!(run_in_browser);
// =====================================================================
// interval
// =====================================================================
// #[wasm_bindgen_test]
// #[should_panic] // TODO: this doesn't work in wasm
// async fn interval_zero_duration() {
// common::interval::interval_zero_duration::<fluvio_wasm_timer::Delay>().await;
// }
#[wasm_bindgen_test]
async fn burst() {
common::interval::burst::<fluvio_wasm_timer::Delay>().await;
}
#[wasm_bindgen_test]
async fn delay() {
common::interval::delay::<fluvio_wasm_timer::Delay>().await;
}
#[wasm_bindgen_test]
async fn skip() {
common::interval::skip::<fluvio_wasm_timer::Delay>().await;
}
#[wasm_bindgen_test]
async fn reset() {
common::interval::reset::<fluvio_wasm_timer::Delay>().await;
}
}
}