Skip to content

Commit d3c71f2

Browse files
committed
tests: internal: multiline: fix expected output data
Signed-off-by: Eduardo Silva <[email protected]>
1 parent c7c5599 commit d3c71f2

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

tests/internal/multiline.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ struct record_check java_input[] = {
108108
{" at com.example.myproject.Book.getId(Book.java:22)\n"},
109109
{" at com.example.myproject.Author.getBookIds(Author.java:35)\n"},
110110
{" ... 1 more"},
111-
{"single line"}
111+
{"single line\n"}
112112
};
113113

114114
struct record_check java_output[] = {
@@ -122,7 +122,7 @@ struct record_check java_output[] = {
122122
" ... 1 more"
123123
},
124124
{
125-
"single line"
125+
"single line\n"
126126
}
127127
};
128128

@@ -339,13 +339,6 @@ static int flush_callback(struct flb_ml_parser *parser,
339339
}
340340
TEST_CHECK(found == FLB_TRUE);
341341

342-
if (!exp->buf) {
343-
printf("expected length: %i, received: NULL\n", len);
344-
msgpack_unpacked_destroy(&result);
345-
exit(1);
346-
return -1;
347-
}
348-
349342
len = strlen(exp->buf);
350343
TEST_CHECK(val.via.str.size == len);
351344
if (val.via.str.size != len) {

0 commit comments

Comments
 (0)