mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 19:41:00 +00:00
threadshare: Call gst::init() in all tests
This commit is contained in:
parent
3c226a05d5
commit
5ad93604ef
1 changed files with 4 additions and 0 deletions
|
@ -735,6 +735,8 @@ mod tests {
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn block_on_within_tokio() {
|
async fn block_on_within_tokio() {
|
||||||
|
gst::init().unwrap();
|
||||||
|
|
||||||
let context = Context::acquire("block_on_within_tokio", SLEEP_DURATION_MS).unwrap();
|
let context = Context::acquire("block_on_within_tokio", SLEEP_DURATION_MS).unwrap();
|
||||||
|
|
||||||
let bytes_sent = crate::runtime::executor::block_on(context.spawn(async {
|
let bytes_sent = crate::runtime::executor::block_on(context.spawn(async {
|
||||||
|
@ -759,6 +761,8 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn block_on_from_sync() {
|
fn block_on_from_sync() {
|
||||||
|
gst::init().unwrap();
|
||||||
|
|
||||||
let context = Context::acquire("block_on_from_sync", SLEEP_DURATION_MS).unwrap();
|
let context = Context::acquire("block_on_from_sync", SLEEP_DURATION_MS).unwrap();
|
||||||
|
|
||||||
let bytes_sent = crate::runtime::executor::block_on(context.spawn(async {
|
let bytes_sent = crate::runtime::executor::block_on(context.spawn(async {
|
||||||
|
|
Loading…
Reference in a new issue