Skip to content

Commit c4f30bf

Browse files
committed
tests: internal: config_map: use new prototype function
Signed-off-by: Eduardo Silva <[email protected]>
1 parent fcb9bfe commit c4f30bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/internal/config_map.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ void test_create()
204204
TEST_CHECK(map != NULL);
205205

206206
/* Populate default values only */
207-
ret = flb_config_map_set(&properties, map, &ctx);
207+
ret = flb_config_map_set(config, &properties, map, &ctx);
208208
TEST_CHECK(ret == 0);
209209

210210
TEST_CHECK(ctx.boolean == 1);
@@ -255,7 +255,7 @@ void test_override_defaults()
255255
flb_kv_item_create(&properties, "test_slist", "abc def ghi jkl m n o");
256256

257257
/* Populate default values only */
258-
ret = flb_config_map_set(&properties, map, &ctx);
258+
ret = flb_config_map_set(config, &properties, map, &ctx);
259259
TEST_CHECK(ret == 0);
260260

261261
TEST_CHECK(ctx.boolean == 0);
@@ -346,7 +346,7 @@ void test_multiple()
346346
ret = flb_config_map_properties_check("test", &prop, map);
347347
TEST_CHECK(ret == 0);
348348

349-
ret = flb_config_map_set(&prop, map, &ctx);
349+
ret = flb_config_map_set(config, &prop, map, &ctx);
350350
TEST_CHECK(ret == 0);
351351

352352
i = 0;
@@ -396,7 +396,7 @@ void test_special_properties()
396396
flb_kv_init(&prop);
397397
flb_kv_item_create(&prop, "condition", "{\"op\": \"and\", \"rules\": [{\"field\": \"$level\", \"op\": \"eq\", \"value\": \"error\"}]}");
398398
flb_kv_item_create(&prop, "active", "true");
399-
399+
400400
/* Add a regular property too */
401401
flb_kv_item_create(&prop, "boolean", "true");
402402

@@ -408,7 +408,7 @@ void test_special_properties()
408408
TEST_CHECK(ret == 0);
409409

410410
/* Test that normal properties are still set correctly */
411-
ret = flb_config_map_set(&prop, map, &ctx);
411+
ret = flb_config_map_set(config, &prop, map, &ctx);
412412
TEST_CHECK(ret == 0);
413413
TEST_CHECK(ctx.boolean == 1);
414414

0 commit comments

Comments
 (0)