Skip to content

Commit 4718f7a

Browse files
committed
Add failing test for #369
1 parent 95b13bd commit 4718f7a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/online.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,15 @@ fn test_channels() {
121121
context.destination().set_channel_count(5);
122122
assert_eq!(context.destination().channel_count(), 5);
123123
}
124+
125+
#[test]
126+
fn test_panner_node_drop_panic() {
127+
// https://github.com/orottier/web-audio-api-rs/issues/369
128+
let context = AudioContext::default();
129+
130+
let panner = context.create_panner();
131+
drop(panner);
132+
std::thread::sleep(std::time::Duration::from_millis(100));
133+
let mut _panner = context.create_panner();
134+
std::thread::sleep(std::time::Duration::from_millis(100));
135+
}

0 commit comments

Comments
 (0)