Skip to content

Commit

Permalink
Fix flaky org.opensearch.common.xcontent.XContentParserTests.testStri…
Browse files Browse the repository at this point in the history
…ng test case (opensearch-project#7625) (opensearch-project#7634)

(cherry picked from commit cde3375)

Signed-off-by: Andriy Redko <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 479aa19 commit 428793f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class XContentParserTests extends OpenSearchTestCase {
() -> randomAlphaOfLengthBetween(1, SmileXContent.DEFAULT_MAX_STRING_LEN / 10), /* limit to ~200Mb */
/* YAML parser limitation */
XContentType.YAML,
() -> randomRealisticUnicodeOfCodepointLengthBetween(1, 3140000)
() -> randomAlphaOfLengthBetween(1, 3140000)
);

public void testStringOffLimit() throws IOException {
Expand Down

0 comments on commit 428793f

Please sign in to comment.