diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-07-02 14:50:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 14:50:13 +0300 |
commit | de158b69457e358420cc1d4f9937016b13dd18e1 (patch) | |
tree | 8dd1916c386fff75a01117a5484494708e7b3665 /exporting | |
parent | c27d12055e399260364465a7094a3d00e0c031fa (diff) |
Fix the exporting engine unit tests (#9460)
Diffstat (limited to 'exporting')
-rw-r--r-- | exporting/tests/netdata_doubles.c | 6 | ||||
-rw-r--r-- | exporting/tests/test_exporting_engine.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/exporting/tests/netdata_doubles.c b/exporting/tests/netdata_doubles.c index f24c746618..42ef398a55 100644 --- a/exporting/tests/netdata_doubles.c +++ b/exporting/tests/netdata_doubles.c @@ -149,7 +149,9 @@ RRDDIM *rrddim_add_custom( collected_number multiplier, collected_number divisor, RRD_ALGORITHM algorithm, - RRD_MEMORY_MODE memory_mode) + RRD_MEMORY_MODE memory_mode, + int is_archived, + uuid_t *dim_uuid) { check_expected_ptr(st); UNUSED(id); @@ -158,6 +160,8 @@ RRDDIM *rrddim_add_custom( check_expected(divisor); check_expected(algorithm); UNUSED(memory_mode); + UNUSED(is_archived); + UNUSED(dim_uuid); function_called(); diff --git a/exporting/tests/test_exporting_engine.c b/exporting/tests/test_exporting_engine.c index 036db39b30..9cdfbf5acf 100644 --- a/exporting/tests/test_exporting_engine.c +++ b/exporting/tests/test_exporting_engine.c @@ -1859,7 +1859,7 @@ int main(void) cmocka_run_group_tests_name("labels_in_exporting_engine", label_tests, NULL, NULL); const struct CMUnitTest internal_metrics_tests[] = { - cmocka_unit_test(test_create_main_rusage_chart), + cmocka_unit_test_setup_teardown(test_create_main_rusage_chart, setup_rrdhost, teardown_rrdhost), cmocka_unit_test(test_send_main_rusage), cmocka_unit_test(test_send_internal_metrics), }; |