[gnome-software/mwleeds/fix-deprecated-install] flatpak: Update remote name for flatpakref unit test




commit dd742c22de5dd788aea4ea75d61e801e4ff1914f
Author: Phaedrus Leeds <mwleeds protonmail com>
Date:   Wed Oct 13 11:19:56 2021 -0700

    flatpak: Update remote name for flatpakref unit test
    
    Now that we are using the FlatpakTransaction API instead of
    FlatpakInstallation to install flatpakref files, the RuntimeRepo= key is
    properly handled and Flatpak uses it to create a remote. In the case of
    the unit test for flatpakref installation, the RuntimeRepo file is
    called "test.flatpakrepo" so "test" becomes the name of the remote, and
    the remote is then used as the origin for the app as well since it has
    both the app and the runtime in it. So, update an assertion to account
    for the new origin remote name for the test flatpakref file.

 plugins/flatpak/gs-self-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/flatpak/gs-self-test.c b/plugins/flatpak/gs-self-test.c
index 525b45487..488270c6c 100644
--- a/plugins/flatpak/gs-self-test.c
+++ b/plugins/flatpak/gs-self-test.c
@@ -1039,7 +1039,7 @@ gs_plugins_flatpak_broken_remote_func (GsPluginLoader *plugin_loader)
        g_assert_cmpstr (gs_app_get_id (app), ==, "org.test.Chiron");
 #if FLATPAK_CHECK_VERSION(1,1,2)
        g_assert_true (as_utils_data_id_equal (gs_app_get_unique_id (app),
-                       "user/flatpak/chiron-origin/org.test.Chiron/master"));
+                       "user/flatpak/test/org.test.Chiron/master"));
 #else
        g_assert_true (as_utils_data_id_equal (gs_app_get_unique_id (app),
                        "user/flatpak/org.test.Chiron-origin/org.test.Chiron/master"));
@@ -1208,7 +1208,7 @@ flatpak_bundle_or_ref_helper (GsPluginLoader *plugin_loader,
 #if FLATPAK_CHECK_VERSION(1,1,2)
                g_printerr ("app unique ID = %s\n", gs_app_get_unique_id (app));
                g_assert_true (as_utils_data_id_equal (gs_app_get_unique_id (app),
-                               "user/flatpak/chiron-origin/org.test.Chiron/master"));
+                               "user/flatpak/test/org.test.Chiron/master"));
 #else
                g_assert_true (as_utils_data_id_equal (gs_app_get_unique_id (app),
                                "user/flatpak/org.test.Chiron-origin/org.test.Chiron/master"));


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