Skip to content

Commit 724afa0

Browse files
committed
tests: internal: mp: fix tests and API
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 62397b2 commit 724afa0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/internal/mp.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ void test_accessor_keys_remove()
101101
" {\"a\": false, "
102102
" \"annotations\": { "
103103
" \"fluentbit.io/tag\": \"thetag\","
104-
" \"extra\": false\""
104+
" \"extra\": false"
105105
"}}]}";
106106

107107
/* Convert to msgpack */
108108
len = strlen(json);
109-
ret = flb_pack_json(json, len, &buf, &size, &type, NULL);
109+
ret = flb_pack_json_yyjson(json, len, &buf, &size, &type, NULL);
110110
TEST_CHECK(ret == 0);
111111
if (ret == -1) {
112112
exit(EXIT_FAILURE);
@@ -173,12 +173,12 @@ void test_keys_remove_subkey_key()
173173
" {\"a\": false, "
174174
" \"annotations\": { "
175175
" \"fluentbit.io/tag\": \"thetag\","
176-
" \"extra\": false\""
176+
" \"extra\": false"
177177
"}}]}";
178178

179179
/* Convert to msgpack */
180180
len = strlen(json);
181-
ret = flb_pack_json(json, len, &buf, &size, &type, NULL);
181+
ret = flb_pack_json_yyjson(json, len, &buf, &size, &type, NULL);
182182
TEST_CHECK(ret == 0);
183183
if (ret == -1) {
184184
exit(EXIT_FAILURE);
@@ -267,7 +267,7 @@ void test_remove_sibling_subkeys()
267267

268268
/* Convert to msgpack */
269269
len = strlen(json);
270-
ret = flb_pack_json(json, len, &buf, &size, &type, NULL);
270+
ret = flb_pack_json_yyjson(json, len, &buf, &size, &type, NULL);
271271
TEST_CHECK(ret == 0);
272272
if (ret == -1) {
273273
exit(EXIT_FAILURE);
@@ -362,12 +362,12 @@ void remove_subkey_keys(char *list[], int list_size, int index_start)
362362
" {\"a\": false, "
363363
" \"annotations\": { "
364364
" \"fluentbit.io/tag\": \"thetag\","
365-
" \"extra\": false\""
365+
" \"extra\": false"
366366
"}}]}";
367367

368368
/* Convert to msgpack */
369369
len = strlen(json);
370-
ret = flb_pack_json(json, len, &buf, &size, &type, NULL);
370+
ret = flb_pack_json_yyjson(json, len, &buf, &size, &type, NULL);
371371
TEST_CHECK(ret == 0);
372372
if (ret == -1) {
373373
exit(EXIT_FAILURE);
@@ -478,12 +478,12 @@ void test_object_to_cfl_to_msgpack()
478478
" {\"a\": false, "
479479
" \"annotations\": { "
480480
" \"fluentbit.io/tag\": \"thetag\","
481-
" \"extra\": false\""
481+
" \"extra\": false"
482482
"}}]}";
483483

484484
/* Convert to msgpack */
485485
len = strlen(json);
486-
ret = flb_pack_json(json, len, &buf, &size, &type, NULL);
486+
ret = flb_pack_json_yyjson(json, len, &buf, &size, &type, NULL);
487487
TEST_CHECK(ret == 0);
488488
if (ret == -1) {
489489
exit(EXIT_FAILURE);

0 commit comments

Comments
 (0)