summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhaedrus Leeds <mwleeds@protonmail.com>2021-10-14 15:13:34 -0700
committerSimon McVittie <smcv@debian.org>2021-10-21 18:14:21 +0100
commit0258fc82bb8eac176d45781b54920f0a27613890 (patch)
tree3162930bcfb19c0bd0379d893d5ccb0a77ef077f
parent14b375e09aaf1f015581fb37b4f1d152668bf769 (diff)
downloadflatpak-0258fc82bb8eac176d45781b54920f0a27613890.tar.gz
testlibrary: Don't use g_assert()
Per the documentation, g_assert_null() is meant for unit tests.
-rw-r--r--tests/testlibrary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testlibrary.c b/tests/testlibrary.c
index 4fcd483c..66eae969 100644
--- a/tests/testlibrary.c
+++ b/tests/testlibrary.c
@@ -984,7 +984,7 @@ test_list_refs_in_remotes (void)
const char *collection_id = flatpak_ref_get_collection_id (ref);
/* There is no collection ref defined for the remote, so collection id is NULL */
- g_assert (collection_id == NULL);
+ g_assert_null (collection_id);
g_hash_table_add (ref_specs, (char *)ref_spec);
}