[gnome-software] dummy: Fix wildcard tests
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] dummy: Fix wildcard tests
- Date: Wed, 13 Sep 2017 10:24:19 +0000 (UTC)
commit 841aeb54cfc021d371668b4acd0dffa9dcaf3e21
Author: Joaquim Rocha <jrocha endlessm com>
Date: Wed Sep 13 12:13:00 2017 +0200
dummy: Fix wildcard tests
It was calling GET_POPULAR with no refine flags, which effectively
ends up performing no refine at all after getting the popular apps
(and this left the apps invalid and thus not considered).
plugins/dummy/gs-self-test.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/dummy/gs-self-test.c b/plugins/dummy/gs-self-test.c
index fd74061..4943e01 100644
--- a/plugins/dummy/gs-self-test.c
+++ b/plugins/dummy/gs-self-test.c
@@ -577,7 +577,9 @@ gs_plugins_dummy_wildcard_func (GsPluginLoader *plugin_loader)
/* override the popular list (do not use the add_popular function) */
g_setenv ("GNOME_SOFTWARE_POPULAR", popular_override, TRUE);
g_object_unref (plugin_job);
- plugin_job = gs_plugin_job_newv (GS_PLUGIN_ACTION_GET_POPULAR, NULL);
+ plugin_job = gs_plugin_job_newv (GS_PLUGIN_ACTION_GET_POPULAR,
+ "refine-flags", GS_PLUGIN_REFINE_FLAGS_REQUIRE_ICON,
+ NULL);
list2 = gs_plugin_loader_job_process (plugin_loader, plugin_job, NULL, &error);
gs_test_flush_main_context ();
g_assert_no_error (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]