orottier/web-audio-api-rs

Unstable tests in tests/online.rs

orottier opened this issue · 0 comments

The event loop has unpredictable timings. Also the sleeps commands to measure progress of current time sometimes do not suffice

---- test_panner_node_drop_panic stdout ----
thread 'test_panner_node_drop_panic' panicked at tests/online.rs:182:5:
assertion failed: context.current_time() >= time + 0.15
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- test_audioparam_outlives_audionode stdout ----
thread 'test_audioparam_outlives_audionode' panicked at tests/online.rs:210:5:
assertion failed: context.current_time() >= time + 0.15

---- node::analyser::tests::test_analyser_after_closed stdout ----
thread 'node::analyser::tests::test_analyser_after_closed' panicked at src/node/analyser.rs:318:9:
assertion failed: `float_eq!(left, right, abs_all <= t)`

---- test_none_sink_id stdout ----
thread 'test_none_sink_id' panicked at tests/online.rs:99:5:
assertion `left == right` failed
  left: 0
 right: 1