Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
joker-star-l committed Oct 30, 2024
1 parent 9d552fb commit ba91eb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/runtime/out_doris.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void flb_test_json()
char *buf2 = "[2, {\"msg\":\"hello world\"}]";
size_t size2 = strlen(buf2);

char *expected_strs[] = {"[{\"date\":1.0,\"msg\":\"hello world\"},{\"date\":2.0,\"msg\":\"hello world\"}]"};
char *expected_strs[] = {"[{\"date\":1,\"msg\":\"hello world\"},{\"date\":2,\"msg\":\"hello world\"}]"};
struct str_list expected = {
.size = sizeof(expected_strs)/sizeof(char*),
.lists = &expected_strs[0],
Expand Down Expand Up @@ -213,7 +213,7 @@ void flb_test_time_key()
char *buf1 = "[1, {\"msg\":\"hello world\"}]";
size_t size1 = strlen(buf1);

char *expected_strs[] = {"{\"timestamp\":1.0,\"msg\":\"hello world\"}"};
char *expected_strs[] = {"{\"timestamp\":1,\"msg\":\"hello world\"}"};
struct str_list expected = {
.size = sizeof(expected_strs)/sizeof(char*),
.lists = &expected_strs[0],
Expand Down

0 comments on commit ba91eb3

Please sign in to comment.