mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 20:38:03 +02:00
tests: si-standard-link: remove unneeded core syncs
This commit is contained in:
parent
85a7f01cb6
commit
0f01c8b6da
1 changed files with 0 additions and 16 deletions
|
|
@ -97,21 +97,9 @@ test_si_standard_link_setup (TestFixture * f, gconstpointer user_data)
|
|||
f->sink_item = load_node (f, "support.null-audio-sink", "Audio/Sink");
|
||||
}
|
||||
|
||||
static void
|
||||
on_core_sync_done (WpCore *core, GAsyncResult *res, TestFixture * f)
|
||||
{
|
||||
g_autoptr (GError) error = NULL;
|
||||
gboolean ret = wp_core_sync_finish (core, res, &error);
|
||||
g_assert_no_error (error);
|
||||
g_assert_true (ret);
|
||||
g_main_loop_quit (f->base.loop);
|
||||
}
|
||||
|
||||
static void
|
||||
test_si_standard_link_teardown (TestFixture * f, gconstpointer user_data)
|
||||
{
|
||||
wp_core_sync (f->base.core, NULL, (GAsyncReadyCallback) on_core_sync_done, f);
|
||||
g_main_loop_run (f->base.loop);
|
||||
g_clear_object (&f->sink_item);
|
||||
g_clear_object (&f->src_item);
|
||||
wp_base_test_fixture_teardown (&f->base);
|
||||
|
|
@ -138,8 +126,6 @@ test_si_standard_link_main (TestFixture * f, gconstpointer user_data)
|
|||
wp_object_activate (WP_OBJECT (link), WP_SESSION_ITEM_FEATURE_ACTIVE,
|
||||
NULL, (GAsyncReadyCallback) test_object_activate_finish_cb, f);
|
||||
g_main_loop_run (f->base.loop);
|
||||
wp_core_sync (f->base.core, NULL, (GAsyncReadyCallback) on_core_sync_done, f);
|
||||
g_main_loop_run (f->base.loop);
|
||||
|
||||
/* verify the graph state */
|
||||
{
|
||||
|
|
@ -191,8 +177,6 @@ test_si_standard_link_main (TestFixture * f, gconstpointer user_data)
|
|||
|
||||
/* deactivate */
|
||||
wp_object_deactivate (WP_OBJECT (link), WP_SESSION_ITEM_FEATURE_ACTIVE);
|
||||
wp_core_sync (f->base.core, NULL, (GAsyncReadyCallback) on_core_sync_done, f);
|
||||
g_main_loop_run (f->base.loop);
|
||||
|
||||
/* verify the graph state */
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue