summaryrefslogtreecommitdiffstats
path: root/exporting/tests
diff options
context:
space:
mode:
authorVladimir Kobal <vlad@prokk.net>2020-05-20 09:30:12 +0300
committerGitHub <noreply@github.com>2020-05-20 09:30:12 +0300
commit98c7260d929a2f6ad2aabb4b27f0d77d49f6cae8 (patch)
tree2f9d031655c1d6ec9cf2a93e7fb7b1ad11931bfb /exporting/tests
parentb8e2a6fd0f2f4c6d4fa21e313e24e5e07519e5c0 (diff)
Prepare the main cleanup function for the exporting engine (#9099)
Diffstat (limited to 'exporting/tests')
-rw-r--r--exporting/tests/test_exporting_engine.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/exporting/tests/test_exporting_engine.c b/exporting/tests/test_exporting_engine.c
index 6cd29132fc..09a0b1c749 100644
--- a/exporting/tests/test_exporting_engine.c
+++ b/exporting/tests/test_exporting_engine.c
@@ -65,8 +65,6 @@ static void test_exporting_engine(void **state)
expect_value(__wrap_send_main_rusage, rd_user, NULL);
expect_value(__wrap_send_main_rusage, rd_system, NULL);
- expect_function_call(__wrap_info_int);
-
void *ptr = malloc(sizeof(struct netdata_static_thread));
assert_ptr_equal(exporting_main(ptr), NULL);
assert_int_equal(engine->now, 2);
@@ -668,6 +666,9 @@ static void test_simple_connector_worker(void **state)
expect_value(__wrap_send_internal_metrics, instance, instance);
will_return(__wrap_send_internal_metrics, 0);
+ expect_function_call(__wrap_info_int);
+ expect_function_call(__wrap_info_int);
+
simple_connector_worker(instance);
assert_int_equal(stats->buffered_metrics, 0);