@cryptotaxi247 / netdata-1 / commits / de158b694

Fix the exporting engine unit tests (#9460)

Vladimir Kobal committed Jul 2, 2020 at 14:50 UTC de158b69457e358420cc1d4f9937016b13dd18e1
2 files changed +6 -2
exporting/tests/netdata_doubles.c
+5 -1
@@ -149,7 +149,9 @@ RRDDIM *rrddim_add_custom(
149 collected_number multiplier,
150 collected_number divisor,
151 RRD_ALGORITHM algorithm,
152 - RRD_MEMORY_MODE memory_mode)
152 + RRD_MEMORY_MODE memory_mode,
153 + int is_archived,
154 + uuid_t *dim_uuid)
155 {
156 check_expected_ptr(st);
157 UNUSED(id);
@@ -158,6 +160,8 @@ RRDDIM *rrddim_add_custom(
160 check_expected(divisor);
161 check_expected(algorithm);
162 UNUSED(memory_mode);
163 + UNUSED(is_archived);
164 + UNUSED(dim_uuid);
165
166 function_called();
167
exporting/tests/test_exporting_engine.c
+1 -1
@@ -1859,7 +1859,7 @@ int main(void)
1859 cmocka_run_group_tests_name("labels_in_exporting_engine", label_tests, NULL, NULL);
1860
1861 const struct CMUnitTest internal_metrics_tests[] = {
1862 - cmocka_unit_test(test_create_main_rusage_chart),
1862 + cmocka_unit_test_setup_teardown(test_create_main_rusage_chart, setup_rrdhost, teardown_rrdhost),
1863 cmocka_unit_test(test_send_main_rusage),
1864 cmocka_unit_test(test_send_internal_metrics),
1865 };