Skip to content

Commit 5a15b12

Browse files
committed
tests: internal: input_chunk_route: add missing cmt init
Signed-off-by: Eduardo Silva <[email protected]>
1 parent babbf92 commit 5a15b12

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/internal/input_chunk_routes.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <chunkio/chunkio.h>
1515
#include <chunkio/cio_utils.h>
1616
#include <string.h>
17+
#include <cmetrics/cmetrics.h>
1718

1819
#include "flb_tests_internal.h"
1920

@@ -474,6 +475,10 @@ static void test_chunk_restore_alias_plugin_match_multiple()
474475
}
475476
config_ready = FLB_TRUE;
476477

478+
#ifdef FLB_HAVE_METRICS
479+
cmt_initialize();
480+
#endif
481+
477482
ret = flb_input_instance_init(&in, &config);
478483
TEST_CHECK(ret == 0);
479484
if (ret != 0) {
@@ -705,6 +710,10 @@ static void test_chunk_restore_alias_plugin_null_matches_all()
705710
}
706711
config_ready = FLB_TRUE;
707712

713+
#ifdef FLB_HAVE_METRICS
714+
cmt_initialize();
715+
#endif
716+
708717
ret = flb_input_instance_init(&in, &config);
709718
TEST_CHECK(ret == 0);
710719
if (ret != 0) {

0 commit comments

Comments
 (0)