[gnome-software] trivial: Fit self tests after a0d8f2f6 hit :)



commit fd5eee2f00c8c5e7e994b46127ac0c4a2138bc7b
Author: Richard Hughes <richard hughsie com>
Date:   Sun Aug 20 16:13:44 2017 +0100

    trivial: Fit self tests after a0d8f2f6 hit :)

 plugins/dummy/gs-self-test.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/dummy/gs-self-test.c b/plugins/dummy/gs-self-test.c
index 3222ca4..fd74061 100644
--- a/plugins/dummy/gs-self-test.c
+++ b/plugins/dummy/gs-self-test.c
@@ -212,7 +212,7 @@ gs_plugins_dummy_updates_func (GsPluginLoader *plugin_loader)
        g_assert_cmpint (gs_app_get_update_urgency (app), ==, AS_URGENCY_KIND_HIGH);
 
        /* get the virtual non-apps OS update */
-       app = gs_app_list_index (list, 1);
+       app = gs_app_list_index (list, 2);
        g_assert_cmpstr (gs_app_get_id (app), ==, "org.gnome.Software.OsUpdate");
        g_assert_cmpstr (gs_app_get_name (app), ==, "OS Updates");
        g_assert_cmpstr (gs_app_get_summary (app), ==, "Includes performance, stability and security 
improvements.");
@@ -221,7 +221,7 @@ gs_plugins_dummy_updates_func (GsPluginLoader *plugin_loader)
        g_assert_cmpint (gs_app_get_related(app)->len, ==, 2);
 
        /* get the virtual non-apps OS update */
-       app = gs_app_list_index (list, 2);
+       app = gs_app_list_index (list, 1);
        g_assert_cmpstr (gs_app_get_id (app), ==, "proxy.desktop");
        g_assert (gs_app_has_quirk (app, AS_APP_QUIRK_IS_PROXY));
        g_assert_cmpint (gs_app_get_state (app), ==, AS_APP_STATE_UPDATABLE_LIVE);


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