threadshare: Call gst::init() in all tests

This commit is contained in:
Sebastian Dröge 2020-04-13 14:44:38 +03:00
parent 3c226a05d5
commit 5ad93604ef

View file

@ -735,6 +735,8 @@ mod tests {
#[tokio::test]
async fn block_on_within_tokio() {
gst::init().unwrap();
let context = Context::acquire("block_on_within_tokio", SLEEP_DURATION_MS).unwrap();
let bytes_sent = crate::runtime::executor::block_on(context.spawn(async {
@ -759,6 +761,8 @@ mod tests {
#[test]
fn block_on_from_sync() {
gst::init().unwrap();
let context = Context::acquire("block_on_from_sync", SLEEP_DURATION_MS).unwrap();
let bytes_sent = crate::runtime::executor::block_on(context.spawn(async {