summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Leeds <matthew.leeds@endlessm.com>2020-04-05 16:23:22 -0700
committerAlexander Larsson <alexander.larsson@gmail.com>2020-04-16 09:22:11 +0200
commitcff972e42230b987e96a9b8f740ca2bc2dceb161 (patch)
treec5ed716ce3cd749094ed3a3d30f9480464c7aa5b
parentf6e81f8cafba6d76e787a2f9a6eb3b97aeb84043 (diff)
downloadflatpak-cff972e42230b987e96a9b8f740ca2bc2dceb161.tar.gz
testlibrary: Simplify code a bit
-rw-r--r--tests/testlibrary.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/tests/testlibrary.c b/tests/testlibrary.c
index 3e52ff8d..509ce6cc 100644
--- a/tests/testlibrary.c
+++ b/tests/testlibrary.c
@@ -1906,21 +1906,7 @@ test_list_updates (void)
"hello-again.desktop;net.example.Goodbye.Again.desktop;");
/* Uninstall the runtime and app */
- transaction = flatpak_transaction_new_for_installation (inst, NULL, &error);
- g_assert_no_error (error);
- g_assert_nonnull (transaction);
-
- res = flatpak_transaction_add_uninstall (transaction, app, &error);
- g_assert_no_error (error);
- g_assert_true (res);
-
- res = flatpak_transaction_add_uninstall (transaction, runtime, &error);
- g_assert_no_error (error);
- g_assert_true (res);
-
- res = flatpak_transaction_run (transaction, NULL, &error);
- g_assert_no_error (error);
- g_assert_true (res);
+ empty_installation (inst);
}
static void