From 5ad93604ef3dc5807ced735d79dadc0d7b159e23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 13 Apr 2020 14:44:38 +0300 Subject: [PATCH] threadshare: Call gst::init() in all tests --- generic/threadshare/src/runtime/executor.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generic/threadshare/src/runtime/executor.rs b/generic/threadshare/src/runtime/executor.rs index 9ee0ce61..e1509a54 100644 --- a/generic/threadshare/src/runtime/executor.rs +++ b/generic/threadshare/src/runtime/executor.rs @@ -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 {