Skip to content

Commit 791d9e4

Browse files
committed
tests: internal: multiline: Remove a needless instantiation of builtin parser
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent d8decf0 commit 791d9e4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/internal/multiline.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,9 +1482,6 @@ static void test_buffer_limit_truncation()
14821482
/* The buffer limit is for the concatenated 'log' content, not the full JSON */
14831483
config->multiline_buffer_limit = "80";
14841484

1485-
/* Use the dummy 'docker' parser for JSON extraction */
1486-
p = flb_parser_get("docker", config);
1487-
14881485
/* This parser will trigger on any content, ensuring concatenation. */
14891486
ml = flb_ml_create(config, "limit-test");
14901487
TEST_CHECK(ml != NULL);
@@ -1495,8 +1492,8 @@ static void test_buffer_limit_truncation()
14951492
params.negate = FLB_FALSE;
14961493
params.flush_ms = 1000;
14971494
params.key_content = "log";
1498-
params.parser_ctx = p; /* immediate single-line parser */
1499-
params.parser_name = "docker"; /* for delayed resolution if needed */
1495+
params.parser_ctx = NULL;
1496+
params.parser_name = NULL;
15001497

15011498
mlp = flb_ml_parser_create_params(config, &params);
15021499
TEST_CHECK(mlp != NULL);

0 commit comments

Comments
 (0)