From 428793fbf9f7337ab34039c8e5f4cbae36aef1a9 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 19 May 2023 10:05:04 -0400 Subject: [PATCH] Fix flaky org.opensearch.common.xcontent.XContentParserTests.testString test case (#7625) (#7634) (cherry picked from commit cde3375c50ac586f5e83d7dd3aff38c3431cf3c4) Signed-off-by: Andriy Redko Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- .../org/opensearch/common/xcontent/XContentParserTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/x-content/src/test/java/org/opensearch/common/xcontent/XContentParserTests.java b/libs/x-content/src/test/java/org/opensearch/common/xcontent/XContentParserTests.java index 05884f6a72d6f..3f4fb89e1706e 100644 --- a/libs/x-content/src/test/java/org/opensearch/common/xcontent/XContentParserTests.java +++ b/libs/x-content/src/test/java/org/opensearch/common/xcontent/XContentParserTests.java @@ -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 {