From f97dd2bb9544c36fcadc5c96c7f6e9a832435b11 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Thu, 16 Feb 2023 13:33:56 +0100 Subject: [PATCH] libnm-core: remove assertion in test It's another place to change when adding a new setting and it doesn't seem useful to assert that the number is exactly 54. --- src/libnm-core-impl/tests/test-setting.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libnm-core-impl/tests/test-setting.c b/src/libnm-core-impl/tests/test-setting.c index 09e0fc70ee..46e6818125 100644 --- a/src/libnm-core-impl/tests/test-setting.c +++ b/src/libnm-core-impl/tests/test-setting.c @@ -121,8 +121,6 @@ test_nm_meta_setting_types_by_priority(void) G_STATIC_ASSERT_EXPR(_NM_META_SETTING_TYPE_NUM == G_N_ELEMENTS(nm_meta_setting_types_by_priority)); - G_STATIC_ASSERT_EXPR(_NM_META_SETTING_TYPE_NUM == 54); - arr = g_ptr_array_new_with_free_func(g_object_unref); for (i = 0; i < _NM_META_SETTING_TYPE_NUM; i++) {