testlibrary: Simplify code a bit

This commit is contained in:
Matthew Leeds
2020-04-05 16:23:22 -07:00
committed by Alexander Larsson
parent f6e81f8caf
commit cff972e422

View File

@@ -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