Skip to content

Commit 5d939b9

Browse files
authored
[BUG] Fix org.opensearch.common.xcontent.XContentParserTests.testString flaky test (opensearch-project#13164)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
1 parent 7103e56 commit 5d939b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/x-content/src/test/java/org/opensearch/common/xcontent/XContentParserTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public class XContentParserTests extends OpenSearchTestCase {
8585
() -> randomAlphaOfLengthBetween(1, SmileXContent.DEFAULT_MAX_STRING_LEN),
8686
/* YAML parser limitation */
8787
XContentType.YAML,
88-
/* use 75% of the limit, difficult to get the exact size of the content right */
89-
() -> randomRealisticUnicodeOfCodepointLengthBetween(1, (int) (YamlXContent.DEFAULT_CODEPOINT_LIMIT * 0.75))
88+
/* use 50% of the limit, difficult to get the exact size of the content right */
89+
() -> randomRealisticUnicodeOfCodepointLengthBetween(1, (int) (YamlXContent.DEFAULT_CODEPOINT_LIMIT * 0.50))
9090
);
9191

9292
private static final Map<XContentType, Supplier<String>> OFF_LIMIT_GENERATORS = Map.of(

0 commit comments

Comments
 (0)