tests: when do not generate random unicode strings for field names, but instead random alpha ascii strings
Should fail build failures like this one:
@@ -56,11 +56,8 @@ public final class RandomDocumentPicks {
* Returns a random leaf field name.
*/
public static String randomLeafFieldName(Random random) {
- String fieldName;
- do {
- fieldName = randomString(random);
- } while (fieldName.contains("."));
- return fieldName;
+ // Never generates a dot:
+ return RandomStrings.randomAsciiAlphanumOfLengthBetween(random, 1, 10);
}
/**
