[gnome-software/wip/hughsie/battery-level-too-low] trivial: Idle flush in the right place to prevent a CI failure



commit 5a4d6d922b489869a426cd184b92df792b6d1c99
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jul 11 18:18:24 2019 +0100

    trivial: Idle flush in the right place to prevent a CI failure

 plugins/flatpak/gs-self-test.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/plugins/flatpak/gs-self-test.c b/plugins/flatpak/gs-self-test.c
index b2cb20ab..6a1aa74f 100644
--- a/plugins/flatpak/gs-self-test.c
+++ b/plugins/flatpak/gs-self-test.c
@@ -418,9 +418,8 @@ gs_plugins_flatpak_app_with_runtime_func (GsPluginLoader *plugin_loader)
        ret = gs_plugin_loader_job_action (plugin_loader, plugin_job, NULL, &error);
 
        /* progress should be set to zero right before installing */
-       g_assert_cmpint (gs_app_get_progress (app), ==, 0);
-
        gs_test_flush_main_context ();
+       g_assert_cmpint (gs_app_get_progress (app), ==, 0);
        g_assert_no_error (error);
        g_assert (ret);
        g_assert_cmpint (gs_app_get_state (app), ==, AS_APP_STATE_INSTALLED);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]