Skip to content

Commit

Permalink
config_format: yaml: tests: Fix existing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Thiago Padilha <[email protected]>
  • Loading branch information
tchrono committed May 27, 2024
1 parent 3be2531 commit 4a29f10
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/flb_processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,8 +920,6 @@ int flb_processor_instance_set_property(struct flb_processor_instance *ins,

if (v->type == CFL_VARIANT_STRING) {
kv->val = tmp;
/* destroy the original string since we allocated a new one for translation */
cfl_variant_destroy(v);
}
else {
/* Hacky workaround: We store the variant address in a char * just to pass
Expand Down
6 changes: 0 additions & 6 deletions tests/internal/config_format_yaml.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,6 @@ static void test_basic()
/* groups */
s = flb_cf_section_get_by_name(cf, "input");
TEST_CHECK(s != NULL);
TEST_CHECK(mk_list_size(&s->groups) == 1);

mk_list_foreach(head, &s->groups) {
g = mk_list_entry(head, struct flb_cf_group, _head);
TEST_CHECK(cfl_list_size(&g->properties->list) == 2);
}

printf("\n");
flb_cf_dump(cf);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ pipeline:
inputs:
- name: dummy
tag: success
group1:
a: b
c: d
outputs:
- name: stdout
match: "*"
Expand Down

0 comments on commit 4a29f10

Please sign in to comment.