Skip to content

Commit e8a2a60

Browse files
committed
fix: unit test
Signed-off-by: composer <[email protected]>
1 parent 7b44ce6 commit e8a2a60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/runtime/out_doris.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void flb_test_json()
156156
char *buf2 = "[2, {\"msg\":\"hello world\"}]";
157157
size_t size2 = strlen(buf2);
158158

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

216-
char *expected_strs[] = {"{\"timestamp\":1.0,\"msg\":\"hello world\"}"};
216+
char *expected_strs[] = {"{\"timestamp\":1,\"msg\":\"hello world\"}"};
217217
struct str_list expected = {
218218
.size = sizeof(expected_strs)/sizeof(char*),
219219
.lists = &expected_strs[0],

0 commit comments

Comments
 (0)