Skip to content

Commit

Permalink
Adjust boundary on truncated response test
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Aug 15, 2024
1 parent 3cd764c commit efc245a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ void testFindSuccessDocs_truncatedResponse() throws IOException {
itemEntry(successDocId)
));

var boundaryWhenParsable = 1017; // Found by running the test
var boundaryWhenParsable = 1016; // Found by running the test
var bulkResponseNotEnoughToParse = bulkResponse.substring(0, boundaryWhenParsable);
System.err.println("***\n" + bulkResponseNotEnoughToParse + "\n***");
var result = BulkResponseParser.findSuccessDocs(bulkResponseNotEnoughToParse);
assertThat(result, empty());

Expand Down

0 comments on commit efc245a

Please sign in to comment.